From 77808c958cc0d216ac1889ae1e6859d06a1d1805 Mon Sep 17 00:00:00 2001 From: Massimo Date: Thu, 14 Feb 2013 16:10:57 -0600 Subject: [PATCH] web2py icon in ubuntu, thanks Niphlod --- VERSION | 2 +- gluon/widget.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3a29cc03..f5740e12 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/widget.py b/gluon/widget.py index 86ee37ed..1e31624b 100644 --- a/gluon/widget.py +++ b/gluon/widget.py @@ -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',