2 #----------------------------------------------------------------------------
3 ## import all of the wxPython GUI package
4 from wxPython
.wx
import *
7 #---------------------------------------------------------------------------
8 class GeneralTab(wxWindow
):
9 def __init__(self
,parent
,id):
10 wxWindow
.__init
__(self
,parent
,id,wxPoint(5,25))
12 hdr
= wxStaticText(self
,-1,"This space left intentionally blank.",wxPoint(5,10))
16 class ServersTab(wxWindow
):
17 def __init__(self
,parent
,id):
18 wxWindow
.__init
__(self
,parent
,id,wxPoint(5,25))
19 hdr
= wxStaticText(self
,-1,"This is also blank on purpose.",wxPoint(5,10))
24 class OptionsTab(wxWindow
):
25 def __init__(self
,parent
,id):
26 wxWindow
.__init
__(self
,parent
,id,wxPoint(5,25))
27 hdr
= wxStaticText(self
,-1,"Quit bugging me!.",wxPoint(5,10))
32 class SettingsWindow(wxFrame
):
38 def __init__(self
,parent
,id):
41 wxFrame
.__init
__(self
,parent
,id,'Pyces Settings',
42 wxPoint(50,50), wxSize(350,475),
43 wxDIALOG_MODAL|wxSTATIC_BORDER|wxCAPTION|wxSYSTEM_MENU
)
44 nb
= wxNotebook(self
, self
.NOTEBOOK
)
45 self
.GeneralTab
= GeneralTab(self
,-1)
46 self
.OptionsTab
= OptionsTab(self
,-1)
47 self
.ServersTab
= ServersTab(self
,-1)
48 nb
.AddPage(self
.GeneralTab
,'General')
49 nb
.AddPage(self
.OptionsTab
,'Options')
50 nb
.AddPage(self
.ServersTab
,'Servers')
52 nb
.SetSize(wxSize(350,420))
56 #---------------------------------------------------------------------------
60 frame
= SettingsWindow(NULL
, -1)
64 self
.SetTopWindow(frame
)
67 #---------------------------------------------------------------------------
70 app
= MyApp(0) # Create an instance of the application class
71 app
.MainLoop() # Tell it to start processing events
73 #----------------------------------------------------------------------------