web2py icon in ubuntu, thanks Niphlod

This commit is contained in:
Massimo
2013-02-14 16:10:57 -06:00
parent c121589499
commit 77808c958c
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.4.1-alpha.2+timestamp.2013.02.14.14.41.19
Version 2.4.1-alpha.2+timestamp.2013.02.14.16.10.20
+4 -1
View File
@@ -193,7 +193,10 @@ class web2pyDialog(object):
self.menu = Tkinter.Menu(self.root)
servermenu = Tkinter.Menu(self.menu, tearoff=0)
httplog = os.path.join(self.options.folder, 'httpserver.log')
iconphoto = 'web2py.gif'
if os.path.exists(iconphoto):
img = Tkinter.PhotoImage(file=iconphoto)
self.root.tk.call('wm', 'iconphoto', self.root._w, img)
# Building the Menu
item = lambda: start_browser(httplog)
servermenu.add_command(label='View httpserver.log',