dont load image

This commit is contained in:
j 2019-01-24 12:12:36 +05:30
parent d46e341448
commit cbe5d30f44

View file

@ -76,9 +76,9 @@ class GtkUI:
class TkUI:
def __init__(self):
self.root = Tk(className="Open Media Library")
png = os.path.join(os.path.dirname(os.path.abspath('__file__')), 'static', 'png', 'oml.png')
icon = PhotoImage(file=png)
self.root.tk.call('wm', 'iconphoto', self.root._w, icon)
#png = os.path.join(os.path.dirname(os.path.abspath('__file__')), 'static', 'png', 'oml.png')
#icon = PhotoImage(file=png)
#self.root.tk.call('wm', 'iconphoto', self.root._w, icon)
self.root.withdraw() # hiding tkinter window
if sys.platform == 'darwin':
self.root.lift()