web2py icon in ubuntu, thanks Niphlod
This commit is contained in:
1 parent
c121589499
commit
77808c958c
2 files changed
+5
-2
No files matched your search
@@ -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
@@ -193,7 +193,10 @@ class web2pyDialog(object):
|
|||||||
self.menu = Tkinter.Menu(self.root)
|
self.menu = Tkinter.Menu(self.root)
|
||||||
servermenu = Tkinter.Menu(self.menu, tearoff=0)
|
servermenu = Tkinter.Menu(self.menu, tearoff=0)
|
||||||
httplog = os.path.join(self.options.folder, 'httpserver.log')
|
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
|
# Building the Menu
|
||||||
item = lambda: start_browser(httplog)
|
item = lambda: start_browser(httplog)
|
||||||
servermenu.add_command(label='View httpserver.log',
|
servermenu.add_command(label='View httpserver.log',
|
||||||
|
|||||||
Reference in new issue
Block a user