/[cvs]/nfo/projects/netfraggle/bin/fraggleDialogPrefs.py
ViewVC logotype

Diff of /nfo/projects/netfraggle/bin/fraggleDialogPrefs.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by joko, Tue Aug 31 16:47:03 2004 UTC revision 1.14 by xabbu, Sun Sep 5 00:21:10 2004 UTC
# Line 3  Line 3 
3  from wxPython.wx import *  from wxPython.wx import *
4  from fraggleEngine import *  from fraggleEngine import *
5    
6    import FraggleDialogModules
7    
8  def create(parent):  def create(parent):
9      return fraggleDialogPrefs(parent)      return fraggleDialogPrefs(parent)
10    
# Line 25  class fraggleDialogPrefs(wxDialog): Line 27  class fraggleDialogPrefs(wxDialog):
27      def _init_ctrls(self, prnt):      def _init_ctrls(self, prnt):
28          # generated method, don't edit          # generated method, don't edit
29          wxDialog.__init__(self, id=wxID_FRAGGLEDIALOGPREFS,          wxDialog.__init__(self, id=wxID_FRAGGLEDIALOGPREFS,
30                name='fraggleDialogPrefs', parent=prnt, pos=wxPoint(283, 313),                name='fraggleDialogPrefs', parent=prnt, pos=wxPoint(482, 310),
31                size=wxSize(374, 260), style=wxDEFAULT_DIALOG_STYLE,                size=wxSize(366, 233), style=wxDEFAULT_DIALOG_STYLE,
32                title='Netfraggle Preferences')                title='Netfraggle Preferences')
33            self._init_utils()
34          self.SetClientSize(wxSize(366, 233))          self.SetClientSize(wxSize(366, 233))
35    
36          self.btsave = wxButton(id=wxID_FRAGGLEDIALOGPREFSBTSAVE,          self.btsave = wxButton(id=wxID_FRAGGLEDIALOGPREFSBTSAVE,
# Line 124  class fraggleDialogPrefs(wxDialog): Line 127  class fraggleDialogPrefs(wxDialog):
127          print list          print list
128          for i in list:          for i in list:
129              self.comboBoxProfile.Append(i)              self.comboBoxProfile.Append(i)
130                
131        def _init_utils(self):
132            # generated method, don't edit
133            pass
134    
135      def __init__(self, parent):      def __init__(self, parent):
136          self.parent = parent          self.parent = parent
137          import __main__          import __main__
# Line 150  class fraggleDialogPrefs(wxDialog): Line 157  class fraggleDialogPrefs(wxDialog):
157          event.Skip()          event.Skip()
158    
159      def loadConfig(self):      def loadConfig(self):
160          prefsfile = os.path.join(self.parent.preferencesCtl.getDefaultDir(), 'prefs.xml')          prefsfile = os.path.join(self.parent.engine.getDefaultDir(), 'prefs.xml')
161          self.parent.preferencesCtl.loadConfig(prefsfile)          self.parent.preferencesCtl.loadConfig(prefsfile)
162                    
163      def updateConfig(self):      def updateConfig(self):
# Line 204  class fraggleDialogPrefs(wxDialog): Line 211  class fraggleDialogPrefs(wxDialog):
211              wxMessageBox("Authentication successful!")              wxMessageBox("Authentication successful!")
212          else:          else:
213              wxMessageBox("Authentication failed!")              wxMessageBox("Authentication failed!")
214    
215        def OnButtonModulesButton(self, event):
216            #self.dialogModules.Show()
217            #self.parent.dialogModules.Hide()
218            event.Skip()

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.14

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed