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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Fri Aug 27 21:14:01 2004 UTC (19 years, 10 months ago) by xabbu
Branch: MAIN
Changes since 1.1: +25 -3 lines
File MIME type: text/x-python
TopicDetails can now be closed.
GUI change on Preferences Dialog in order to prepare multiple server profiles.
Small bugfixes to get the new topic windows working on posix platform.

1 #Boa:MDIChild:FraggleTopicDetailFrame
2
3 from wxPython.wx import *
4
5 def create(parent):
6 return FraggleTopicDetailFrame(parent)
7
8 [wxID_FRAGGLETOPICDETAILFRAME, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE,
9 wxID_FRAGGLETOPICDETAILFRAMEPANEL1,
10 ] = map(lambda _init_ctrls: wxNewId(), range(3))
11
12 class FraggleTopicDetailFrame(wxMDIChildFrame):
13 def _init_ctrls(self, prnt):
14 # generated method, don't edit
15 wxMDIChildFrame.__init__(self, id=wxID_FRAGGLETOPICDETAILFRAME, name='',
16 parent=prnt, pos=wxPoint(356, 362), size=wxSize(389, 211),
17 style=wxDEFAULT_FRAME_STYLE, title='Topic details')
18 self._init_utils()
19 self.SetClientSize(wxSize(389, 211))
20
21 self.panel1 = wxPanel(id=wxID_FRAGGLETOPICDETAILFRAMEPANEL1,
22 name='panel1', parent=self, pos=wxPoint(0, 0), size=wxSize(389,
23 211), style=wxTAB_TRAVERSAL)
24
25 self.buttonClose = wxButton(id=wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE,
26 label='X', name='buttonClose', parent=self.panel1, pos=wxPoint(8,
27 8), size=wxSize(16, 16), style=0)
28 self.buttonClose.SetAutoLayout(True)
29 EVT_BUTTON(self.buttonClose, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE,
30 self.OnButtoncloseButton)
31
32 def _init_utils(self):
33 # generated method, don't edit
34 pass
35
36 def __init__(self, parent):
37 self._init_ctrls(parent)
38
39 def OnButtoncloseButton(self, event):
40 self.Destroy()
41 event.Skip()

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