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