added more images

This commit is contained in:
iLLiCiTiT 2021-08-19 15:47:05 +02:00
parent 779a65521e
commit 0fca397ae2
7 changed files with 44 additions and 0 deletions

View file

@ -1,3 +1,8 @@
from .icons import (
get_icon_path,
get_pixmap,
get_icon
)
from .widgets import (
SubsetAttributesWidget,
PublishOverlayFrame
@ -13,6 +18,10 @@ from .instance_views_widgets import (
__all__ = (
"get_icon_path",
"get_pixmap",
"get_icon",
"SubsetAttributesWidget",
"PublishOverlayFrame",

View file

@ -0,0 +1,35 @@
import os
from Qt import QtGui
def get_icon_path(icon_name=None, filename=None):
if icon_name is None and filename is None:
return None
if filename is None:
filename = "{}.png".format(icon_name)
path = os.path.join(
os.path.dirname(os.path.abspath(__file__)),
"images",
filename
)
if os.path.exists(path):
return path
return None
def get_pixmap(icon_name=None, filename=None):
path = get_icon_path(icon_name, filename)
if not path:
return None
return QtGui.QPixmap(path)
def get_icon(icon_name=None, filename=None):
pix = get_pixmap(icon_name, filename)
if not pix:
return None
return QtGui.QIcon(pix)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,020 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

View file

Before

Width:  |  Height:  |  Size: 5 KiB

After

Width:  |  Height:  |  Size: 5 KiB

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB