comparison frontends/wix/main_window.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 d2630fba8dfd
children 1ca5f254ce41
comparison
equal deleted inserted replaced
118:76055a209ed9 119:ded2431cea5a
97 97
98 98
99 #events 99 #events
100 self.Bind(wx.EVT_CLOSE, self.onClose, self) 100 self.Bind(wx.EVT_CLOSE, self.onClose, self)
101 101
102
102 QuickApp.__init__(self) 103 QuickApp.__init__(self)
103 #self.plug_profile() #gof:
104 104
105 #menus 105 #menus
106 self.createMenus() 106 self.createMenus()
107 for i in range(self.menuBar.GetMenuCount()): 107 for i in range(self.menuBar.GetMenuCount()):
108 self.menuBar.EnableTop(i, False) 108 self.menuBar.EnableTop(i, False)
109 109
110 #profile panel 110 #profile panel
111 self.profile_pan = ProfileManager(self) 111 self.profile_pan = ProfileManager(self)
112 #self.profile_pan.Hide() #gof: 112 #self.profile_pan.Hide() #gof:
113 self.sizer.Add(self.profile_pan, 1, flag=wx.EXPAND) 113 self.sizer.Add(self.profile_pan, 1, flag=wx.EXPAND)
114 if self.options.profile: #TODO: move this to quick_app 114
115 self.plug_profile(self.options.profile) 115 self.postInit()
116 116
117
118 self.Show() 117 self.Show()
119 118
120 def plug_profile(self, profile_key='@DEFAULT@'): 119 def plug_profile(self, profile_key='@DEFAULT@'):
121 """Hide profile panel then plug profile""" 120 """Hide profile panel then plug profile"""
122 debug (_('plugin profile %s' % profile_key)) 121 debug (_('plugin profile %s' % profile_key))