comparison frontends/src/primitivus/profile_manager.py @ 446:39a8ca1a2675

Primitivus: fixed redraw on profile change in profile manager
author Goffi <goffi@goffi.org>
date Sun, 04 Dec 2011 00:05:41 +0100
parents 6c20c76abdcc
children cf005701624b
comparison
equal deleted inserted replaced
445:1c1d1a4994c4 446:39a8ca1a2675
106 self.host.showPopUp(pop_up_widget) 106 self.host.showPopUp(pop_up_widget)
107 107
108 def onProfileChange(self, list_wid): 108 def onProfileChange(self, list_wid):
109 def setJID(jabberID): 109 def setJID(jabberID):
110 self.login_wid.set_edit_text(jabberID) 110 self.login_wid.set_edit_text(jabberID)
111 self.host.redraw()
111 def setPassword(password): 112 def setPassword(password):
112 self.pass_wid.set_edit_text(password) 113 self.pass_wid.set_edit_text(password)
114 self.host.redraw()
113 115
114 profile_name = list_wid.getSelectedValue() 116 profile_name = list_wid.getSelectedValue()
115 if profile_name: 117 if profile_name:
116 self.host.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile_name, callback=setJID, errback=self.getParamError) 118 self.host.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile_name, callback=setJID, errback=self.getParamError)
117 self.host.bridge.asyncGetParamA("Password", "Connection", profile_key=profile_name, callback=setPassword, errback=self.getParamError) 119 self.host.bridge.asyncGetParamA("Password", "Connection", profile_key=profile_name, callback=setPassword, errback=self.getParamError)
118 self.host.redraw()
119 120
120 def onConnectProfile(self, button): 121 def onConnectProfile(self, button):
121 profile_name = self.list_profile.getSelectedValue() 122 profile_name = self.list_profile.getSelectedValue()
122 if not profile_name: 123 if not profile_name:
123 pop_up_widget = Alert(_('No profile selected'), _('You need to create and select a profile before connecting'), ok_cb=self.cancelDialog) 124 pop_up_widget = Alert(_('No profile selected'), _('You need to create and select a profile before connecting'), ok_cb=self.cancelDialog)