comparison frontends/primitivus/custom_widgets.py @ 162:ae50b53ff868

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 2fa58703f1b7
children f582fddd0cc0
comparison
equal deleted inserted replaced
161:c37826d80f2a 162:ae50b53ff868
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