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

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

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

revision 1.1 by joko, Fri Aug 27 04:47:48 2004 UTC revision 1.2 by xabbu, Fri Aug 27 21:14:01 2004 UTC
# Line 5  from wxPython.wx import * Line 5  from wxPython.wx import *
5  def create(parent):  def create(parent):
6      return FraggleTopicDetailFrame(parent)      return FraggleTopicDetailFrame(parent)
7    
8  [wxID_FRAGGLETOPICDETAILFRAME] = map(lambda _init_ctrls: wxNewId(), range(1))  [wxID_FRAGGLETOPICDETAILFRAME, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE,
9     wxID_FRAGGLETOPICDETAILFRAMEPANEL1,
10    ] = map(lambda _init_ctrls: wxNewId(), range(3))
11    
12  class FraggleTopicDetailFrame(wxMDIChildFrame):  class FraggleTopicDetailFrame(wxMDIChildFrame):
13      def _init_ctrls(self, prnt):      def _init_ctrls(self, prnt):
14          # generated method, don't edit          # generated method, don't edit
15          wxMDIChildFrame.__init__(self, id=wxID_FRAGGLETOPICDETAILFRAME, name='',          wxMDIChildFrame.__init__(self, id=wxID_FRAGGLETOPICDETAILFRAME, name='',
16                parent=prnt, pos=wxPoint(384, 266), size=wxSize(350, 231),                parent=prnt, pos=wxPoint(356, 362), size=wxSize(389, 211),
17                style=wxDEFAULT_FRAME_STYLE, title='Topic details')                style=wxDEFAULT_FRAME_STYLE, title='Topic details')
18          self.SetClientSize(wxSize(342, 204))          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):      def __init__(self, parent):
37          self._init_ctrls(parent)          self._init_ctrls(parent)
38    
39        def OnButtoncloseButton(self, event):
40            self.Destroy()
41            event.Skip()

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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