comparison frontends/primitivus/custom_widgets.py @ 17:222aa33716ad

misc Tarot fixes - wix, primitivus, quick_frontend: autoplay fonction is activated by changing self._autoplay from None to 0 in quick card game - primitivus: added forgotten import of log methods - primitivus: fix bad selected color for notification messages - primitivus: score are now shown
author Goffi <goffi@goffi.org>
date Fri, 06 Aug 2010 12:18:50 +0800
parents 263fe4d067ad
children bdc83e857093
comparison
equal deleted inserted replaced
16:263fe4d067ad 17:222aa33716ad
370 """Bar used to show misc information to user""" 370 """Bar used to show misc information to user"""
371 signals = ['change'] 371 signals = ['change']
372 372
373 def __init__(self): 373 def __init__(self):
374 self.waitNotifs = urwid.Text('') 374 self.waitNotifs = urwid.Text('')
375 self.message = ClickableText('', default_attr='notifs') 375 self.message = ClickableText('', default_attr='notifs', select_attr='notifs')
376 urwid.connect_signal(self.message, 'click', lambda wid: self.showNext()) 376 urwid.connect_signal(self.message, 'click', lambda wid: self.showNext())
377 self.columns = urwid.Columns([('fixed',6,self.waitNotifs),self.message]) 377 self.columns = urwid.Columns([('fixed',6,self.waitNotifs),self.message])
378 urwid.WidgetWrap.__init__(self, urwid.AttrMap(self.columns,'notifs')) 378 urwid.WidgetWrap.__init__(self, urwid.AttrMap(self.columns,'notifs'))
379 self.notifs = [] 379 self.notifs = []
380 380