diff frontends/quick_frontend/quick_app.py @ 119:ded2431cea5a

Primitivus: chat window / text sending. Primitivus has now the most basics features \o/ - core: new getVersion method - primitivus: new debug key (C-d), only work if SàT is in dev version (D in version) - quick_app: new post_init method, used for automatique task like auto-plug - primitivus: lists now use genericList (Box) or List (Flow) - primitivus: List now manage correctly its size - primitivus: new FocusFrame widget which manage focus changing with 'tab' - primitivus: advancedEdit now manage 'click' signal - primitivus: contactList now manager 'change' and 'click' signals - primitivus: Chat window now working
author Goffi <goffi@goffi.org>
date Mon, 05 Jul 2010 19:13:36 +0800
parents 1f0fd6f03e2b
children 961e0898271f
line wrap: on
line diff
--- a/frontends/quick_frontend/quick_app.py	Sat Jul 03 13:56:44 2010 +0800
+++ b/frontends/quick_frontend/quick_app.py	Mon Jul 05 19:13:36 2010 +0800
@@ -71,6 +71,14 @@
         """Tell if the profile is currently followed by the application"""
         return profile in self.profiles.keys()
 
+    def postInit(self):
+        """Must be called after __init__, do all automatic task (auto plug profile)"""
+        if self.options.profile:
+            if not self.bridge.getProfileName(self.options.profile): 
+                error(_("Trying to plug an unknown profile (%s)" % self.options.profile))
+            else:
+                self.plug_profile(self.options.profile)
+
     def check_options(self):
         """Check command line options"""
         usage=_("""