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

Contents of /nfo/projects/netfraggle/bin/fraggleViewport.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations)
Wed Aug 25 21:40:54 2004 UTC (19 years, 10 months ago) by xabbu
Branch: MAIN
Changes since 1.5: +10 -12 lines
File MIME type: text/x-python
OS autodetection fixed

1 #Boa:MDIParent:fraggleViewport
2
3 import os
4 from wxPython.wx import *
5
6 import fraggleDialogPrefs
7 import fraggleCtlPreferences
8
9 def create(parent):
10 return fraggleViewport(parent)
11
12 [wxID_FRAGGLEVIEWPORT] = map(lambda _init_ctrls: wxNewId(), range(1))
13
14 [wxID_FRAGGLEVIEWPORTMENU1FPREFS, wxID_FRAGGLEVIEWPORTMENU1ITEMS1,
15 ] = map(lambda _init_coll_menu1_Items: wxNewId(), range(2))
16
17 class fraggleViewport(wxMDIParentFrame):
18 def _init_coll_menu1_Items(self, parent):
19 # generated method, don't edit
20
21 parent.Append(helpString='Configure Netfraggle',
22 id=wxID_FRAGGLEVIEWPORTMENU1FPREFS, item='Preferences',
23 kind=wxITEM_NORMAL)
24 parent.Append(helpString='Exit Netfraggle',
25 id=wxID_FRAGGLEVIEWPORTMENU1ITEMS1, item='Exit',
26 kind=wxITEM_NORMAL)
27
28 EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1FPREFS, self.OnMenu1items0Menu)
29 EVT_MENU(self, wxID_FRAGGLEVIEWPORTMENU1ITEMS1, self.OnMenu1items1Menu)
30
31 def _init_coll_menuBar1_Menus(self, parent):
32 # generated method, don't edit
33
34 parent.Append(menu=self.menu1, title='File')
35
36 def _init_utils(self):
37 # generated method, don't edit
38 self.menuBar1 = wxMenuBar()
39 self.menuBar1.SetAutoLayout(1)
40
41 self.menu1 = wxMenu(title='')
42 self._init_coll_menu1_Items(self.menu1)
43
44 self._init_coll_menuBar1_Menus(self.menuBar1)
45
46 def _init_ctrls(self, prnt):
47 # generated method, don't edit
48 wxMDIParentFrame.__init__(self, id=wxID_FRAGGLEVIEWPORT,
49 name='fraggleViewport', parent=prnt, pos=wxPoint(277, 313),
50 size=wxSize(683, 307),
51 style=wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL,
52 title='wxMDIParentFrame1')
53 self._init_utils()
54 self.SetClientSize(wxSize(683, 284))
55 self.SetMenuBar(self.menuBar1)
56
57 def __init_preferences__(self):
58 self.preferencesCtl = fraggleCtlPreferences.create(self)
59 self.dialogPrefs = fraggleDialogPrefs.create(self)
60 self.dialogPrefs.loadConfig()
61 self.dialogPrefs.updateConfig()
62
63 def __init__(self, parent):
64 self._init_ctrls(parent)
65 self.__init_preferences__()
66
67
68 def OnMenu1items0Menu(self, event):
69 try:
70 self.dialogPrefs.ShowModal()
71 finally:
72 pass
73 event.Skip()
74
75 def OnMenu1items1Menu(self, event):
76 self.Destroy()
77 event.Skip()
78

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