1 |
#Boa:Dialog:wxModuleDialog |
2 |
|
3 |
from wxPython.wx import * |
4 |
|
5 |
def create(parent): |
6 |
return wxModuleDialog(parent) |
7 |
|
8 |
[wxID_WXMODULEDIALOG, wxID_WXMODULEDIALOGBUTTON1, |
9 |
wxID_WXMODULEDIALOGBUTTONSAVECLOSE, wxID_WXMODULEDIALOGCHECKLISTBOXMODULES, |
10 |
] = map(lambda _init_ctrls: wxNewId(), range(4)) |
11 |
|
12 |
class wxModuleDialog(wxDialog): |
13 |
def _init_utils(self): |
14 |
# generated method, don't edit |
15 |
pass |
16 |
|
17 |
def _init_ctrls(self, prnt): |
18 |
# generated method, don't edit |
19 |
wxDialog.__init__(self, id=wxID_WXMODULEDIALOG, name='wxModuleDialog', |
20 |
parent=prnt, pos=wxPoint(256, 167), size=wxSize(189, 288), |
21 |
style=wxDEFAULT_DIALOG_STYLE, title='Module Setup') |
22 |
self._init_utils() |
23 |
self.SetClientSize(wxSize(189, 288)) |
24 |
|
25 |
self.checkListBoxModules = wxCheckListBox(choices=[], |
26 |
id=wxID_WXMODULEDIALOGCHECKLISTBOXMODULES, |
27 |
name='checkListBoxModules', parent=self, pos=wxPoint(8, 8), |
28 |
size=wxSize(168, 248), style=0, validator=wxDefaultValidator) |
29 |
|
30 |
self.buttonSaveClose = wxButton(id=wxID_WXMODULEDIALOGBUTTONSAVECLOSE, |
31 |
label='Save and Close', name='buttonSaveClose', parent=self, |
32 |
pos=wxPoint(8, 264), size=wxSize(88, 16), style=0) |
33 |
|
34 |
self.button1 = wxButton(id=wxID_WXMODULEDIALOGBUTTON1, label='Cancel', |
35 |
name='button1', parent=self, pos=wxPoint(104, 264), |
36 |
size=wxSize(72, 16), style=0) |
37 |
|
38 |
def __init__(self, parent): |
39 |
self._init_ctrls(parent) |