--- nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/09/01 20:56:32 1.11 +++ 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) @@ -120,16 +122,16 @@ 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 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__ @@ -155,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): @@ -209,3 +211,8 @@ wxMessageBox("Authentication successful!") else: wxMessageBox("Authentication failed!") + + def OnButtonModulesButton(self, event): + #self.dialogModules.Show() + #self.parent.dialogModules.Hide() + event.Skip()