89 |
parent=self, pos=wxPoint(80, 8), size=wxSize(124, 16), style=0, |
parent=self, pos=wxPoint(80, 8), size=wxSize(124, 16), style=0, |
90 |
validator=wxDefaultValidator, value='') |
validator=wxDefaultValidator, value='') |
91 |
self.comboBoxProfile.SetLabel('') |
self.comboBoxProfile.SetLabel('') |
92 |
|
EVT_COMBOBOX(self.comboBoxProfile, |
93 |
|
wxID_FRAGGLEDIALOGPREFSCOMBOBOXPROFILE, |
94 |
|
self.OnComboboxprofileCombobox) |
95 |
|
|
96 |
self.staticText6 = wxStaticText(id=wxID_FRAGGLEDIALOGPREFSSTATICTEXT6, |
self.staticText6 = wxStaticText(id=wxID_FRAGGLEDIALOGPREFSSTATICTEXT6, |
97 |
label='Profile', name='staticText6', parent=self, pos=wxPoint(16, |
label='Profile', name='staticText6', parent=self, pos=wxPoint(16, |
147 |
event.Skip() |
event.Skip() |
148 |
|
|
149 |
def loadConfig(self): |
def loadConfig(self): |
150 |
engine = FraggleEngine() |
prefsfile = os.path.join(self.parent.preferencesCtl.getDefaultDir(), 'prefs.xml') |
|
prefsfile = os.path.join(engine.getDefaultDir(), 'prefs.xml') |
|
151 |
self.parent.preferencesCtl.loadConfig(prefsfile) |
self.parent.preferencesCtl.loadConfig(prefsfile) |
152 |
|
|
153 |
def updateConfig(self): |
def updateConfig(self): |
186 |
event.Skip() |
event.Skip() |
187 |
|
|
188 |
def OnButtonprofiledelButton(self, event): |
def OnButtonprofiledelButton(self, event): |
189 |
#self.parent.preferencesCtl.deleteProfile(self.comboBoxProfile.GetValue()) |
self.parent.preferencesCtl.deleteProfile(self.comboBoxProfile.GetValue()) |
190 |
#self.comboBoxProfile.Remove(self.comboBoxProfile.GetValue()) |
self.comboBoxProfile.Delete(self.comboBoxProfile.FindString(self.comboBoxProfile.GetValue())) |
191 |
|
self.parent.preferencesCtl.saveProfiles() |
192 |
|
self.updateConfig() |
193 |
|
event.Skip() |
194 |
|
|
195 |
|
def OnComboboxprofileCombobox(self, event): |
196 |
event.Skip() |
event.Skip() |
197 |
|
|