diff frontends/src/wix/main_window.py @ 679:59c9a7ff903d

wix, misc: use picture of dimension 32x32 for tray icon + better PEP-8 compliance
author souliane <souliane@mailoo.org>
date Tue, 22 Oct 2013 09:41:27 +0200
parents e2eff3c7ad02
children f7878ad3c846
line wrap: on
line diff
--- a/frontends/src/wix/main_window.py	Mon Oct 21 15:52:28 2013 +0200
+++ b/frontends/src/wix/main_window.py	Tue Oct 22 09:41:27 2013 +0200
@@ -72,7 +72,7 @@
 
         #ToolBar
         self.tools=self.CreateToolBar()
-        self.statusBox =  wx.ComboBox(self.tools, -1, "Online", choices=[status[1] for status in const_STATUS],
+        self.statusBox = wx.ComboBox(self.tools, -1, "Online", choices=[status[1] for status in const_STATUS],
                                       style=wx.CB_DROPDOWN | wx.CB_READONLY)
         self.tools.AddControl(self.statusBox)
         self.tools.AddSeparator()
@@ -82,10 +82,8 @@
         self.Bind(wx.EVT_TEXT_ENTER, self.onStatusChange, self.statusTxt)
         self.tools.Disable()
 
-
-
         #tray icon
-        ticon = wx.Icon(os.path.join(self.media_dir, 'icons/crystal/tray_icon.xpm'), wx.BITMAP_TYPE_XPM)
+        ticon = wx.Icon(os.path.join(self.media_dir, 'icons/crystal/32/tray_icon.xpm'), wx.BITMAP_TYPE_XPM)
         self.tray_icon = wx.TaskBarIcon()
         self.tray_icon.SetIcon(ticon, _("Wix jabber client"))
         wx.EVT_TASKBAR_LEFT_UP(self.tray_icon, self.onTrayClick)