90 |
self._init_ctrls(parent) |
self._init_ctrls(parent) |
91 |
|
|
92 |
def OnBtsaveButton(self, event): |
def OnBtsaveButton(self, event): |
93 |
self.parent.preferencesCtl.setConfig(self.textCtrlUsername.GetValue(),self.textCtrlPassword.GetValue(), |
|
94 |
self.textCtrlServer.GetValue(),self.textCtrlRetrieval.GetValue()) |
# convert from utf-8: required for win32 |
95 |
|
import codecs |
96 |
|
(UTF8_encode, UTF8_decode, |
97 |
|
UTF8_streamreader, UTF8_streamwriter) = codecs.lookup('UTF-8') |
98 |
|
self.parent.preferencesCtl.setConfig( |
99 |
|
UTF8_encode(self.textCtrlUsername.GetValue())[0], |
100 |
|
UTF8_encode(self.textCtrlPassword.GetValue())[0], |
101 |
|
UTF8_encode(self.textCtrlServer.GetValue())[0], |
102 |
|
UTF8_encode(self.textCtrlRetrieval.GetValue())[0] |
103 |
|
) |
104 |
|
|
105 |
self.parent.preferencesCtl.saveConfig() |
self.parent.preferencesCtl.saveConfig() |
106 |
event.Skip() |
event.Skip() |