comparison frontends/quick_frontend/quick_app.py @ 159:2fa58703f1b7

Primitivus: notification bar, first draft - popup queue is now managed - notifications can auto-hide when nothing to show - ctrl-n show next notification Primitivus: ctrl-s allow to temporarily hide a popup Primitivus: cards in card_game now answer to mouse click Primitivus: notification is shown when invalid card is played in card_game Primitivus: SelectableText has now methods get_text and set_text
author Goffi <goffi@goffi.org>
date Wed, 04 Aug 2010 17:57:51 +0800
parents 63d20bda5754
children 8a2053de6f8c
comparison
equal deleted inserted replaced
158:74aaf230a7c3 159:2fa58703f1b7
70 def check_profile(self, profile): 70 def check_profile(self, profile):
71 """Tell if the profile is currently followed by the application""" 71 """Tell if the profile is currently followed by the application"""
72 return profile in self.profiles.keys() 72 return profile in self.profiles.keys()
73 73
74 def postInit(self): 74 def postInit(self):
75 """Must be called after __init__, do all automatic task (auto plug profile)""" 75 """Must be called after initialization is done, do all automatic task (auto plug profile)"""
76 if self.options.profile: 76 if self.options.profile:
77 if not self.bridge.getProfileName(self.options.profile): 77 if not self.bridge.getProfileName(self.options.profile):
78 error(_("Trying to plug an unknown profile (%s)" % self.options.profile)) 78 error(_("Trying to plug an unknown profile (%s)" % self.options.profile))
79 else: 79 else:
80 self.plug_profile(self.options.profile) 80 self.plug_profile(self.options.profile)