--- nfo/projects/netfraggle/bin/FraggleTopicDetailFrame.py 2004/08/27 04:47:48 1.1 +++ nfo/projects/netfraggle/bin/FraggleTopicDetailFrame.py 2004/08/27 21:14:01 1.2 @@ -5,15 +5,37 @@ def create(parent): return FraggleTopicDetailFrame(parent) -[wxID_FRAGGLETOPICDETAILFRAME] = map(lambda _init_ctrls: wxNewId(), range(1)) +[wxID_FRAGGLETOPICDETAILFRAME, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE, + wxID_FRAGGLETOPICDETAILFRAMEPANEL1, +] = map(lambda _init_ctrls: wxNewId(), range(3)) class FraggleTopicDetailFrame(wxMDIChildFrame): def _init_ctrls(self, prnt): # generated method, don't edit wxMDIChildFrame.__init__(self, id=wxID_FRAGGLETOPICDETAILFRAME, name='', - parent=prnt, pos=wxPoint(384, 266), size=wxSize(350, 231), + parent=prnt, pos=wxPoint(356, 362), size=wxSize(389, 211), style=wxDEFAULT_FRAME_STYLE, title='Topic details') - self.SetClientSize(wxSize(342, 204)) + self._init_utils() + self.SetClientSize(wxSize(389, 211)) + + self.panel1 = wxPanel(id=wxID_FRAGGLETOPICDETAILFRAMEPANEL1, + name='panel1', parent=self, pos=wxPoint(0, 0), size=wxSize(389, + 211), style=wxTAB_TRAVERSAL) + + self.buttonClose = wxButton(id=wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE, + label='X', name='buttonClose', parent=self.panel1, pos=wxPoint(8, + 8), size=wxSize(16, 16), style=0) + self.buttonClose.SetAutoLayout(True) + EVT_BUTTON(self.buttonClose, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE, + self.OnButtoncloseButton) + + def _init_utils(self): + # generated method, don't edit + pass def __init__(self, parent): self._init_ctrls(parent) + + def OnButtoncloseButton(self, event): + self.Destroy() + event.Skip()