1 |
joko |
1.1 |
#Boa:MDIChild:FraggleTopicDetailFrame |
2 |
|
|
|
3 |
|
|
from wxPython.wx import * |
4 |
|
|
|
5 |
|
|
def create(parent): |
6 |
|
|
return FraggleTopicDetailFrame(parent) |
7 |
|
|
|
8 |
xabbu |
1.2 |
[wxID_FRAGGLETOPICDETAILFRAME, wxID_FRAGGLETOPICDETAILFRAMEBUTTONCLOSE, |
9 |
|
|
wxID_FRAGGLETOPICDETAILFRAMEPANEL1, |
10 |
|
|
] = map(lambda _init_ctrls: wxNewId(), range(3)) |
11 |
joko |
1.1 |
|
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 |
xabbu |
1.2 |
parent=prnt, pos=wxPoint(356, 362), size=wxSize(389, 211), |
17 |
joko |
1.1 |
style=wxDEFAULT_FRAME_STYLE, title='Topic details') |
18 |
xabbu |
1.2 |
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 |
joko |
1.1 |
|
36 |
|
|
def __init__(self, parent): |
37 |
|
|
self._init_ctrls(parent) |
38 |
xabbu |
1.2 |
|
39 |
|
|
def OnButtoncloseButton(self, event): |
40 |
|
|
self.Destroy() |
41 |
|
|
event.Skip() |