--- nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/08/31 16:47:03 1.10 +++ nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/09/05 00:21:10 1.14 @@ -3,6 +3,8 @@ from wxPython.wx import * from fraggleEngine import * +import FraggleDialogModules + def create(parent): return fraggleDialogPrefs(parent) @@ -25,9 +27,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, @@ -124,7 +127,11 @@ print list for i in list: self.comboBoxProfile.Append(i) - + + def _init_utils(self): + # generated method, don't edit + pass + def __init__(self, parent): self.parent = parent import __main__ @@ -150,7 +157,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): @@ -204,3 +211,8 @@ wxMessageBox("Authentication successful!") else: wxMessageBox("Authentication failed!") + + def OnButtonModulesButton(self, event): + #self.dialogModules.Show() + #self.parent.dialogModules.Hide() + event.Skip()