Skip to content

Commit

Permalink
Skip icon assignment on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmassay committed Jan 18, 2017
1 parent 3d08501 commit 87903d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,9 @@ def run(bk):
root.resizable(True, True)
root.minsize(420, 325)
root.option_add('*font', 'Arial -12')
img = tkinter.Image('photo', file=os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'images/icon.png'))
root.tk.call('wm','iconphoto',root._w,img)
if not sys.platform.startswith('darwin'):
img = tkinter.Image('photo', file=os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'images/icon.png'))
root.tk.call('wm','iconphoto',root._w,img)
guiMain(root, bk).pack(fill=tkinter_constants.BOTH)
root.mainloop()

Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<description>Manipulate Spans, Divs and other tags.</description>
<engine>python3.4</engine>
<engine>python2.7</engine>
<version>0.4.2</version>
<version>0.4.3</version>
<oslist>osx,unx,win</oslist>
<autostart>true</autostart>
<autoclose>true</autoclose>
Expand Down

0 comments on commit 87903d2

Please sign in to comment.