--- nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/09/04 20:26:01 1.13 +++ nfo/projects/netfraggle/bin/fraggleDialogPrefs.py 2004/09/05 00:21:10 1.14 @@ -11,8 +11,7 @@ [wxID_FRAGGLEDIALOGPREFS, wxID_FRAGGLEDIALOGPREFSBTSAVE, - wxID_FRAGGLEDIALOGPREFSBUTTON1, wxID_FRAGGLEDIALOGPREFSBUTTONMODULES, - wxID_FRAGGLEDIALOGPREFSBUTTONPROFILEDEL, + wxID_FRAGGLEDIALOGPREFSBUTTON1, wxID_FRAGGLEDIALOGPREFSBUTTONPROFILEDEL, wxID_FRAGGLEDIALOGPREFSBUTTONPROFILELOAD, wxID_FRAGGLEDIALOGPREFSBUTTONPROFILESAVE, wxID_FRAGGLEDIALOGPREFSBUTTONTEST, wxID_FRAGGLEDIALOGPREFSCOMBOBOXPROFILE, wxID_FRAGGLEDIALOGPREFSSTATICTEXT1, @@ -22,15 +21,16 @@ wxID_FRAGGLEDIALOGPREFSTEXTCTRLRETRIEVAL, wxID_FRAGGLEDIALOGPREFSTEXTCTRLSERVER, wxID_FRAGGLEDIALOGPREFSTEXTCTRLUSERNAME, -] = map(lambda _init_ctrls: wxNewId(), range(19)) +] = map(lambda _init_ctrls: wxNewId(), range(18)) class fraggleDialogPrefs(wxDialog): def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FRAGGLEDIALOGPREFS, name='fraggleDialogPrefs', parent=prnt, pos=wxPoint(482, 310), - size=wxSize(374, 260), style=wxDEFAULT_DIALOG_STYLE, + 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, @@ -122,24 +122,21 @@ EVT_BUTTON(self.buttonTest, wxID_FRAGGLEDIALOGPREFSBUTTONTEST, self.OnButtonTestButton) - self.buttonModules = wxButton(id=wxID_FRAGGLEDIALOGPREFSBUTTONMODULES, - label='Modules', name='buttonModules', parent=self, - pos=wxPoint(264, 184), size=wxSize(96, 16), style=0) - EVT_BUTTON(self.buttonModules, wxID_FRAGGLEDIALOGPREFSBUTTONMODULES, - self.OnButtonModulesButton) - 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__ self.engine = __main__.engine self._init_ctrls(parent) - self.dialogModules = FraggleDialogModules.create(self) self.__init_profiles() def OnBtsaveButton(self, event): @@ -216,6 +213,6 @@ wxMessageBox("Authentication failed!") def OnButtonModulesButton(self, event): - self.dialogModules.Show() + #self.dialogModules.Show() #self.parent.dialogModules.Hide() event.Skip()