--- nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/08/31 16:47:03 1.10 +++ nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/09/01 21:43:30 1.12 @@ -25,9 +25,10 @@ def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FRAGGLEDIALOGPREFS, - name='fraggleDialogPrefs', parent=prnt, pos=wxPoint(283, 313), - size=wxSize(374, 260), style=wxDEFAULT_DIALOG_STYLE, + name='fraggleDialogPrefs', parent=prnt, pos=wxPoint(482, 310), + size=wxSize(366, 233), style=wxDEFAULT_DIALOG_STYLE, title='Netfraggle Preferences') + self._init_utils() self.SetClientSize(wxSize(366, 233)) self.btsave = wxButton(id=wxID_FRAGGLEDIALOGPREFSBTSAVE, @@ -119,6 +120,10 @@ EVT_BUTTON(self.buttonTest, wxID_FRAGGLEDIALOGPREFSBUTTONTEST, self.OnButtonTestButton) + def _init_utils(self): + # generated method, don't edit + pass + def __init_profiles(self): list = self.parent.preferencesCtl.getProfileList() print list @@ -150,7 +155,7 @@ event.Skip() def loadConfig(self): - prefsfile = os.path.join(self.parent.preferencesCtl.getDefaultDir(), 'prefs.xml') + prefsfile = os.path.join(self.parent.engine.getDefaultDir(), 'prefs.xml') self.parent.preferencesCtl.loadConfig(prefsfile) def updateConfig(self):