diff frontends/src/primitivus/primitivus @ 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 903c4749de15
children af0d08a84cc6
line wrap: on
line diff
--- a/frontends/src/primitivus/primitivus	Mon Oct 21 15:52:28 2013 +0200
+++ b/frontends/src/primitivus/primitivus	Tue Oct 22 09:41:27 2013 +0200
@@ -154,11 +154,11 @@
         self.loop = urwid.MainLoop(self.main_widget, const_PALETTE, event_loop=urwid.GLibEventLoop(), input_filter=self.inputFilter, unhandled_input=self.keyHandler)
 
         ##misc setup##
-        self.chat_wins=ChatList(self)
+        self.chat_wins = ChatList(self)
         self.notBar = sat_widgets.NotificationBar()
-        urwid.connect_signal(self.notBar,'change',self.onNotification)
+        urwid.connect_signal(self.notBar, 'change', self.onNotification)
         self.progress_wid = Progress(self)
-        urwid.connect_signal(self.notBar.progress,'click',lambda x:self.addWindow(self.progress_wid))
+        urwid.connect_signal(self.notBar.progress, 'click', lambda x: self.addWindow(self.progress_wid))
         self.__saved_overlay = None
 
         self.x_notify = Notify()
@@ -299,9 +299,9 @@
         return menu_roller
 
     def __buildMainWidget(self):
-        self.contact_list = ContactList(self, on_click = self.contactSelected, on_change=lambda w: self.redraw())
+        self.contact_list = ContactList(self, on_click=self.contactSelected, on_change=lambda w: self.redraw())
         #self.center_part = urwid.Columns([('weight',2,self.contact_list),('weight',8,Chat('',self))])
-        self.center_part = urwid.Columns([('weight',2,self.contact_list), ('weight',8,urwid.Filler(urwid.Text('')))])
+        self.center_part = urwid.Columns([('weight', 2, self.contact_list), ('weight', 8, urwid.Filler(urwid.Text('')))])
 
         self.editBar = EditBar(self)
         self.menu_roller = self.__buildMenuRoller()