File: wxFrame1.py

package info (click to toggle)
boa-constructor 0.3.0-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,188 kB
  • ctags: 8,857
  • sloc: python: 54,163; sh: 66; makefile: 36
file content (26 lines) | stat: -rw-r--r-- 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#Boa:Frame:wxFrame1

from wxPython.wx import *

def create(parent):
    return wxFrame1(parent)

[wxID_WXFRAME1, wxID_WXFRAME1TREECTRL1] = map(lambda _init_ctrls: wxNewId(), range(2))

class wxFrame1(wxFrame):
    _custom_classes = {'wxTreeCtrl': ['MyTreeCtrl']}
    def _init_utils(self):
        pass

    def _init_ctrls(self, prnt):
        wxFrame.__init__(self, id = wxID_WXFRAME1, name = '', parent = prnt, pos = wxPoint(154, 154), size = wxSize(488, 258), style = wxDEFAULT_FRAME_STYLE, title = 'wxFrame1')
        self._init_utils()

        self.treeCtrl1 = MyTreeCtrl(id = wxID_WXFRAME1TREECTRL1, name = 'treeCtrl1', parent = self, pos = wxPoint(0, 0), size = wxSize(480, 231), style = wxTR_HAS_BUTTONS, validator = wxDefaultValidator)

    def __init__(self, parent):
        self._init_ctrls(parent)


class MyTreeCtrl(wxTreeCtrl):
    pass