Example #1
0
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.MiniFrame.__init__(self,
                              id=wxID_IMAGEVIEWER,
                              name='ImageViewer',
                              parent=prnt,
                              pos=wx.Point(401, 286),
                              size=wx.Size(127, 131),
                              style=wx.DEFAULT_FRAME_STYLE | wx.STAY_ON_TOP,
                              title='Image viewer')
        self.SetClientSize(wx.Size(119, 104))

        self.sashWindow1 = wx.SashWindow(id=wxID_IMAGEVIEWERSASHWINDOW1,
                                         name='sashWindow1',
                                         parent=self,
                                         pos=wx.Point(0, 0),
                                         size=wx.Size(119, 104),
                                         style=wx.SW_BORDER | wx.THICK_FRAME
                                         | wx.SW_3D)
        self.sashWindow1.SetExtraBorderSize(self.borderSize)
        self.sashWindow1.SetMinimumSizeX(24)
        self.sashWindow1.SetMinimumSizeY(24)
        self.sashWindow1.Bind(wx.EVT_SIZE, self.OnSashwindow1Size)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.NullBitmap,
                                             id=wxID_IMAGEVIEWERSTATICBITMAP1,
                                             name='staticBitmap1',
                                             parent=self.sashWindow1,
                                             pos=wx.Point(9, 9),
                                             size=wx.Size(101, 86),
                                             style=0)
Example #2
0
    def __init__(self,
                 parent,
                 object=None,
                 rootName="Root",
                 autoVisible=False,
                 onUpdate=None,
                 id=wx.ID_ANY,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.TAB_TRAVERSAL,
                 name='InfoTree'):

        super(InfoTree, self).__init__(parent, id, pos, size, style, name)

        self._infoTreeBasic = InfoTreeBasic(self, object, rootName,
                                            autoVisible, onUpdate)

        self._sashWindow = wx.SashWindow(self)
        self._sashWindow.SetSashVisible(wx.SASH_TOP, True)

        self._infoTable = wx.ScrolledWindow(self._sashWindow, style=wx.VSCROLL)
        self._infoTable.SetBackgroundColour((255, 255, 255))
        self._infoTable.SetScrollRate(0, 10)
        self._infoTable.SetMinSize((-1, 70))

        self._infoTableSizer = wx.FlexGridSizer(0, 2, 0, 8)
        self._infoTableSizer.AddGrowableCol(1)
        self._infoTable.SetSizer(self._infoTableSizer)

        self._vBoxSashWindow = wx.BoxSizer(wx.VERTICAL)
        self._vBoxSashWindow.Add(self._infoTable, 1, wx.EXPAND)
        self._vBoxSashWindow.SetMinSize((-1, 100))
        self._sashWindow.SetSizer(self._vBoxSashWindow)
        self._sashWindow.Bind(wx.EVT_SASH_DRAGGED, self.sashWindowResize)

        self._vBox = wx.BoxSizer(wx.VERTICAL)
        self._vBox.Add(self._infoTreeBasic, 1, wx.EXPAND)
        self._vBox.Add(self._sashWindow, 0, wx.EXPAND)
        self.SetSizerAndFit(self._vBox)

        self._memberDisplay = MemberDisplay(self._infoTable,
                                            self._infoTableSizer)

        self._infoTreeBasic.Bind(wx.EVT_TREE_SEL_CHANGED,
                                 self.selectionChanged)

        self.Bind(wx.EVT_PAINT, self.onPaint)
Example #3
0
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(556, 295), size=wx.Size(516, 476),
              style=wx.DEFAULT_FRAME_STYLE, title='Everything')
        self._init_utils()
        self.SetClientSize(wx.Size(508, 449))
        self.SetMenuBar(self.menuBar1)
        self.Center(wx.BOTH)

        self.toolBar1 = wx.ToolBar(id=wxID_FRAME1TOOLBAR1, name='toolBar1',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(508, 27),
              style=wx.TB_HORIZONTAL | wx.NO_BORDER)
        self.SetToolBar(self.toolBar1)

        self.statusBar1 = wx.StatusBar(id=wxID_FRAME1STATUSBAR1,
              name='statusBar1', parent=self, style=0)
        self.statusBar1.SetPosition(wx.Point(0, 308))
        self.statusBar1.SetSize(wx.Size(422, 20))
        self._init_coll_statusBar1_Fields(self.statusBar1)
        self.SetStatusBar(self.statusBar1)

        self.notebook1 = wx.Notebook(id=wxID_FRAME1NOTEBOOK1, name='notebook1',
              parent=self, pos=wx.Point(0, 27), size=wx.Size(508, 383),
              style=0)

        self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)

        self.splitterWindow1 = wx.SplitterWindow(id=wxID_FRAME1SPLITTERWINDOW1,
              name='splitterWindow1', parent=self.panel1, point=wx.Point(8, 8),
              size=wx.Size(200, 100), style=wx.SP_3D)

        self.scrolledWindow1 = wx.ScrolledWindow(id=wxID_FRAME1SCROLLEDWINDOW1,
              name='scrolledWindow1', parent=self.splitterWindow1,
              pos=wx.Point(2, 2), size=wx.Size(98, 96),
              style=wx.SUNKEN_BORDER | wx.TAB_TRAVERSAL)
        self.scrolledWindow1.SetToolTipString('wxScrolledWindow')

        self.sashWindow1 = wx.SashWindow(id=wxID_FRAME1SASHWINDOW1,
              name='sashWindow1', parent=self.splitterWindow1, pos=wx.Point(107,
              2), size=wx.Size(91, 96), style=wx.CLIP_CHILDREN | wx.SW_3D)
        self.splitterWindow1.SplitVertically(self.scrolledWindow1,
              self.sashWindow1, 100)

        self.sashLayoutWindow1 = wx.SashLayoutWindow(id=wxID_FRAME1SASHLAYOUTWINDOW1,
              name='sashLayoutWindow1', parent=self.panel1, pos=wx.Point(8,
              120), size=wx.Size(200, 80), style=wx.CLIP_CHILDREN | wx.SW_3D)

        self.window1 = wx.Window(id=wxID_FRAME1WINDOW1, name='window1',
              parent=self.panel1, pos=wx.Point(216, 120), size=wx.Size(96, 80),
              style=wx.SIMPLE_BORDER)
        self.window1.SetCursor(self.stockCursor1)

        self.dynamicSashWindow1 = wx.gizmos.DynamicSashWindow(id=wxID_FRAME1DYNAMICSASHWINDOW1,
              name='dynamicSashWindow1', parent=self.panel1, pos=wx.Point(216,
              8), size=wx.Size(100, 100), style=wx.CLIP_CHILDREN)

        self.panel2 = wx.Panel(id=wxID_FRAME1PANEL2, name='panel2',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)

        self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1,
              label='staticText1', name='staticText1', parent=self.panel2,
              pos=wx.Point(16, 16), size=wx.Size(52, 13), style=0)

        self.textCtrl1 = wx.TextCtrl(id=wxID_FRAME1TEXTCTRL1, name='textCtrl1',
              parent=self.panel2, pos=wx.Point(16, 40), size=wx.Size(100, 21),
              style=0, value='textCtrl1')

        self.comboBox1 = wx.ComboBox(choices=[], id=wxID_FRAME1COMBOBOX1,
              name='comboBox1', parent=self.panel2, pos=wx.Point(16, 72),
              size=wx.Size(125, 21), style=0, validator=wx.DefaultValidator,
              value='comboBox1')

        self.choice1 = wx.Choice(choices=[], id=wxID_FRAME1CHOICE1,
              name='choice1', parent=self.panel2, pos=wx.Point(16, 104),
              size=wx.Size(125, 21), style=0, validator=wx.DefaultValidator)

        self.checkBox1 = wx.CheckBox(id=wxID_FRAME1CHECKBOX1, label='checkBox1',
              name='checkBox1', parent=self.panel2, pos=wx.Point(16, 136),
              size=wx.Size(73, 13), style=0)

        self.radioButton1 = wx.RadioButton(id=wxID_FRAME1RADIOBUTTON1,
              label='radioButton1', name='radioButton1', parent=self.panel2,
              pos=wx.Point(16, 160), size=wx.Size(80, 20), style=0)

        self.slider1 = wx.Slider(id=wxID_FRAME1SLIDER1, maxValue=100,
              minValue=0, name='slider1', parent=self.panel2,
              point=wx.Point(152, 16), size=wx.Size(136, 20),
              style=wx.SL_HORIZONTAL, validator=wx.DefaultValidator, value=0)
        self.slider1.Bind(wx.EVT_SCROLL, self.OnSlider1Slider)

        self.scrollBar1 = wx.ScrollBar(id=wxID_FRAME1SCROLLBAR1,
              name='scrollBar1', parent=self.panel2, pos=wx.Point(16, 192),
              size=wx.Size(120, 14), style=wx.SB_HORIZONTAL)
        self.scrollBar1.SetThumbPosition(0)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=Everything_img.getBoaBitmap(),
              id=wxID_FRAME1STATICBITMAP1, name='staticBitmap1',
              parent=self.panel2, pos=wx.Point(160, 136), size=wx.Size(16, 16),
              style=0)

        self.staticLine1 = wx.StaticLine(id=wxID_FRAME1STATICLINE1,
              name='staticLine1', parent=self.panel2, pos=wx.Point(15, 216),
              size=wx.Size(121, 2), style=0)

        self.staticBox1 = wx.StaticBox(id=wxID_FRAME1STATICBOX1,
              label='staticBox1', name='staticBox1', parent=self.panel2,
              pos=wx.Point(152, 120), size=wx.Size(144, 40), style=0)

        self.htmlWindow1 = wx.html.HtmlWindow(id=wxID_FRAME1HTMLWINDOW1,
              name='htmlWindow1', parent=self.panel2, pos=wx.Point(152, 168),
              size=wx.Size(144, 80), style=wx.html.HW_SCROLLBAR_AUTO)

        self.lEDNumberCtrl1 = wx.gizmos.LEDNumberCtrl(id=wxID_FRAME1LEDNUMBERCTRL1,
              parent=self.panel2, pos=wx.Point(152, 40), size=wx.Size(136, 40),
              style=wx.gizmos.LED_ALIGN_CENTER)
        self.lEDNumberCtrl1.SetValue('123')

        self.panel3 = wx.Panel(id=wxID_FRAME1PANEL3, name='panel3',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)

        self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1',
              name='button1', parent=self.panel3, pos=wx.Point(16, 16),
              size=wx.Size(75, 23), style=0)
        self.button1.Bind(wx.EVT_BUTTON, self.OnButton1Button,
              id=wxID_FRAME1BUTTON1)
        self.button1.Bind(wx.EVT_LEFT_UP, self.OnButton1LeftUp)

        self.bitmapButton1 = wx.BitmapButton(bitmap=Everything_img.getBoaBitmap(),
              id=wxID_FRAME1BITMAPBUTTON1, name='bitmapButton1',
              parent=self.panel3, pos=wx.Point(16, 56), size=wx.Size(72, 24),
              style=wx.BU_AUTODRAW, validator=wx.DefaultValidator)
        self.bitmapButton1.Bind(wx.EVT_BUTTON, self.OnBitmapbutton1Button,
              id=wxID_FRAME1BITMAPBUTTON1)

        self.spinButton1 = wx.SpinButton(id=wxID_FRAME1SPINBUTTON1,
              name='spinButton1', parent=self.panel3, pos=wx.Point(136, 96),
              size=wx.Size(32, 16), style=wx.SP_HORIZONTAL)
        self.spinButton1.Bind(wx.EVT_COMMAND_SCROLL,
              self.OnSpinbutton1CommandScroll, id=wxID_FRAME1SPINBUTTON1)

        self.toggleButton1 = wx.ToggleButton(id=wxID_FRAME1TOGGLEBUTTON1,
              label='toggleButton1', name='toggleButton1', parent=self.panel3,
              pos=wx.Point(104, 16), size=wx.Size(81, 23), style=0)
        self.toggleButton1.Bind(wx.EVT_BUTTON, self.OnTogglebutton1Button,
              id=wxID_FRAME1TOGGLEBUTTON1)

        self.genButton1 = wx.lib.buttons.GenButton(ID=wxID_FRAME1GENBUTTON1,
              label='genButton1', name='genButton1', parent=self.panel3,
              pos=wx.Point(16, 160), size=wx.Size(88, 37), style=0)

        self.genBitmapButton1 = wx.lib.buttons.GenBitmapButton(ID=wxID_FRAME1GENBITMAPBUTTON1,
              bitmap=Everything_img.getBoaBitmap(), name='genBitmapButton1',
              parent=self.panel3, pos=wx.Point(16, 192), size=wx.Size(59, 58),
              style=0)

        self.genToggleButton1 = wx.lib.buttons.GenToggleButton(ID=wxID_FRAME1GENTOGGLEBUTTON1,
              label='genToggleButton1', name='genToggleButton1',
              parent=self.panel3, pos=wx.Point(104, 160), size=wx.Size(113, 37),
              style=0)

        self.genBitmapToggleButton1 = wx.lib.buttons.GenBitmapToggleButton(ID=wxID_FRAME1GENBITMAPTOGGLEBUTTON1,
              bitmap=Everything_img.getBoaBitmap(),
              name='genBitmapToggleButton1', parent=self.panel3,
              pos=wx.Point(72, 192), size=wx.Size(59, 58), style=0)

        self.genBitmapTextToggleButton1 = wx.lib.buttons.GenBitmapTextToggleButton(ID=wxID_FRAME1GENBITMAPTEXTTOGGLEBUTTON1,
              bitmap=Everything_img.getBoaBitmap(),
              label='genBitmapTextToggleButton1',
              name='genBitmapTextToggleButton1', parent=self.panel3,
              pos=wx.Point(128, 192), size=wx.Size(88, 58), style=0)

        self.contextHelpButton1 = wx.ContextHelpButton(parent=self.panel3,
              pos=wx.Point(136, 64), size=wx.Size(20, 19),
              style=wx.BU_AUTODRAW)

        self.panel4 = wx.Panel(id=wxID_FRAME1PANEL4, name='panel4',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)

        self.radioBox1 = wx.RadioBox(choices=['asd'], id=wxID_FRAME1RADIOBOX1,
              label='radioBox1', majorDimension=1, name='radioBox1',
              parent=self.panel4, point=wx.Point(16, 16), size=wx.DefaultSize,
              style=wx.RA_SPECIFY_COLS, validator=wx.DefaultValidator)

        self.listBox1 = wx.ListBox(choices=[], id=wxID_FRAME1LISTBOX1,
              name='listBox1', parent=self.panel4, pos=wx.Point(16, 64),
              size=wx.Size(115, 63), style=0, validator=wx.DefaultValidator)

        self.checkListBox1 = wx.CheckListBox(choices=[],
              id=wxID_FRAME1CHECKLISTBOX1, name='checkListBox1',
              parent=self.panel4, pos=wx.Point(16, 136), size=wx.Size(115, 63),
              style=0, validator=wx.DefaultValidator)

        self.grid1 = wx.grid.Grid(id=wxID_FRAME1GRID1, name='grid1',
              parent=self.panel4, pos=wx.Point(144, 16), size=wx.Size(128, 112),
              style=0)

        self.listCtrl1 = wx.ListCtrl(id=wxID_FRAME1LISTCTRL1, name='listCtrl1',
              parent=self.panel4, pos=wx.Point(280, 16), size=wx.Size(100, 30),
              style=wx.LC_ICON, validator=wx.DefaultValidator)

        self.treeCtrl1 = wx.TreeCtrl(id=wxID_FRAME1TREECTRL1, name='treeCtrl1',
              parent=self.panel4, pos=wx.Point(280, 56), size=wx.Size(100, 80),
              style=wx.TR_HAS_BUTTONS, validator=wx.DefaultValidator)

        self.editableListBox1 = wx.gizmos.EditableListBox(id=wxID_FRAME1EDITABLELISTBOX1,
              label='editableListBox1', name='editableListBox1',
              parent=self.panel4, pos=wx.Point(152, 152), size=wx.Size(200,
              100))

        self.panel5 = wx.Panel(id=wxID_FRAME1PANEL5, name='panel5',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)
        self.panel5.SetAutoLayout(True)

        self.window2 = wx.Window(id=wxID_FRAME1WINDOW2, name='window2',
              parent=self.panel5, pos=wx.Point(446, 16), size=wx.Size(40, 40),
              style=0)
        self.window2.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window2.SetConstraints(LayoutAnchors(self.window2, False, True,
              True, False))

        self.window3 = wx.Window(id=wxID_FRAME1WINDOW3, name='window3',
              parent=self.panel5, pos=wx.Point(16, 299), size=wx.Size(40, 40),
              style=0)
        self.window3.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window3.SetConstraints(LayoutAnchors(self.window3, True, False,
              False, True))

        self.window4 = wx.Window(id=wxID_FRAME1WINDOW4, name='window4',
              parent=self.panel5, pos=wx.Point(446, 299), size=wx.Size(40, 40),
              style=0)
        self.window4.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window4.SetConstraints(LayoutAnchors(self.window4, False, False,
              True, True))

        self.window5 = wx.Window(id=wxID_FRAME1WINDOW5, name='window5',
              parent=self.panel5, pos=wx.Point(16, 16), size=wx.Size(40, 40),
              style=0)
        self.window5.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window5.SetConstraints(LayoutAnchors(self.window5, True, True,
              False, False))

        self.window6 = wx.Window(id=wxID_FRAME1WINDOW6, name='window6',
              parent=self.panel5, pos=wx.Point(192, 16), size=wx.Size(126, 40),
              style=0)
        self.window6.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window6.SetConstraints(LayoutAnchors(self.window6, True, True,
              True, False))

        self.window7 = wx.Window(id=wxID_FRAME1WINDOW7, name='window7',
              parent=self.panel5, pos=wx.Point(446, 120), size=wx.Size(40, 115),
              style=0)
        self.window7.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window7.SetConstraints(LayoutAnchors(self.window7, False, True,
              True, True))

        self.window8 = wx.Window(id=wxID_FRAME1WINDOW8, name='window8',
              parent=self.panel5, pos=wx.Point(192, 299), size=wx.Size(126, 40),
              style=0)
        self.window8.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window8.SetConstraints(LayoutAnchors(self.window8, True, False,
              True, True))

        self.window9 = wx.Window(id=wxID_FRAME1WINDOW9, name='window9',
              parent=self.panel5, pos=wx.Point(16, 120), size=wx.Size(40, 115),
              style=0)
        self.window9.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window9.SetConstraints(LayoutAnchors(self.window9, True, True,
              False, True))

        self.window10 = wx.Window(id=wxID_FRAME1WINDOW10, name='window10',
              parent=self.panel5, pos=wx.Point(225, 147), size=wx.Size(40, 40),
              style=0)
        self.window10.SetBackgroundColour(wx.Colour(128, 255, 0))
        self.window10.SetConstraints(LayoutAnchors(self.window10, False, False,
              False, False))

        self.panel6 = wx.Panel(id=wxID_FRAME1PANEL6, name='panel6',
              parent=self.notebook1, pos=wx.Point(0, 0), size=wx.Size(500, 357),
              style=wx.TAB_TRAVERSAL)

        self.gauge1 = wx.Gauge(id=wxID_FRAME1GAUGE1, name='gauge1',
              parent=self.panel2, pos=wx.Point(152, 88), range=100,
              size=wx.Size(136, 16), style=wx.GA_SMOOTH | wx.GA_HORIZONTAL,
              validator=wx.DefaultValidator)
        self.gauge1.SetValue(50)

        self._init_coll_toolBar1_Tools(self.toolBar1)
        self._init_coll_notebook1_Pages(self.notebook1)
Example #4
0
    def _init_ctrls(self, prnt, position, label):  #,p_pos):
        # generated method, don't edit
        wx.Panel.__init__(
            self,
            id=wxID_PANEL2,
            name='',
            parent=prnt,
            pos=position,  #wx.Point(20, 200), 
            size=wx.Size(449, 140),
            style=wx.TAB_TRAVERSAL)
        self.SetClientSize(wx.Size(449, 140))

        self.staticDownloadPanel = wx.StaticBox(id=wxID_PANEL1STATICBOX1,
                                                label=label,
                                                name='staticBox1',
                                                parent=self,
                                                pos=wx.Point(0, 0),
                                                size=wx.Size(430, 140),
                                                style=0)  ###

        self.choice_ComPort = wx.Choice(choices=[
            "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8",
            "COM9"
        ],
                                        id=wxID_PANEL2CHOICE_COMPORT,
                                        name=u'choice_ComPort',
                                        parent=self.staticDownloadPanel,
                                        pos=wx.Point(85, 85),
                                        size=wx.Size(80, 21),
                                        style=0)
        self.choice_ComPort.SetSelection(0)
        self.choice_ComPort.Bind(wx.EVT_CHOICE,
                                 self.OnChoice_ComPortChoice,
                                 id=wxID_PANEL2CHOICE_COMPORT)

        self.staticText_ComPort = wx.StaticText(
            id=wxID_PANEL2STATICTEXT_COMPORT,
            label=u'COM PORT:',
            name=u'staticText_ComPort',
            parent=self.staticDownloadPanel,
            pos=wx.Point(8, 85),
            size=wx.Size(75, 13),
            style=0)

        self.staticText_Baudrate = wx.StaticText(
            id=wxID_PANEL2STATICTEXT_BAUDRATE,
            label=u'BAUDRATE:',
            name=u'staticText_Baudrate',
            parent=self.staticDownloadPanel,
            pos=wx.Point(173, 85),
            size=wx.Size(66, 18),
            style=0)

        self.choice_Baudrate = wx.Choice(
            choices=['115200', '230400', '345600', '460800', '576000'],
            id=wxID_PANEL2CHOICE_BAUDRATE,
            name=u'choice_Baudrate',
            parent=self.staticDownloadPanel,
            pos=wx.Point(253, 85),
            size=wx.Size(80, 21),
            style=0)
        self.choice_Baudrate.SetSelection(0)
        self.choice_Baudrate.Bind(wx.EVT_CHOICE,
                                  self.OnChoice_BaudrateChoice,
                                  id=wxID_PANEL2CHOICE_BAUDRATE)

        self.button_Start = wx.Button(id=wxID_PANEL2BUTTON_START,
                                      label=u'START',
                                      name=u'button_Start',
                                      parent=self.staticDownloadPanel,
                                      pos=wx.Point(85, 16),
                                      size=wx.Size(74, 30),
                                      style=0)
        self.button_Start.Bind(wx.EVT_BUTTON,
                               self.OnButton_StartButton,
                               id=wxID_PANEL2BUTTON_START)

        self.button_Stop = wx.Button(id=wxID_PANEL2BUTTON_STOP,
                                     label=u'STOP',
                                     name=u'button_Stop',
                                     parent=self.staticDownloadPanel,
                                     pos=wx.Point(85, 49),
                                     size=wx.Size(74, 26),
                                     style=0)
        self.button_Stop.Bind(wx.EVT_BUTTON,
                              self.OnButton_StopButton,
                              id=wxID_PANEL2BUTTON_STOP)

        #download state window
        self.sashWindow1 = wx.SashWindow(id=wxID_FRAME1SASHWINDOW1,
                                         name='sashWindow1',
                                         parent=self.staticDownloadPanel,
                                         pos=wx.Point(8, 16),
                                         size=wx.Size(74, 64),
                                         style=wx.CLIP_CHILDREN | wx.SW_3D)
        self.sashWindow1.SetBackgroundColour(wx.Colour(255, 255, 255))
        sb1 = wx.StaticBitmap(
            self.sashWindow1, 1,
            wx.BitmapFromImage(
                wx.Image("./RESOURCE/IDLE_S.bmp", wx.BITMAP_TYPE_ANY)))

        self.gauge = wx.Gauge(id=-1,
                              name="test",
                              parent=self.staticDownloadPanel,
                              pos=wx.Point(8, 110),
                              range=100,
                              size=wx.Size(380, 25),
                              style=wx.GA_HORIZONTAL)

        self.baudrate = int(self.choice_Baudrate.GetStringSelection())
        self.comport = self.choice_ComPort.Selection + 1

        self.timer = wx.Timer(self)
        self.timer2 = wx.Timer(self)

        self.cp = self.frame.panel_spi  #    combine_panel
        #self.mp=self.frame.panel_mac#          mac_panel
        self.panel_mac = pm.Panel1(self, wx.Point(170, 3), self.num)
        self.mp = self.panel_mac
        self.path_panel = self.frame.panel_path  #path_panel

        #self.dls=fpm.FlashDownloadState(self,self.path_panel,case,self.cp,self.mp)

        self.check_res = []
        self.dl_list = []
Example #5
0
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(582, 93), size=wx.Size(753, 497),
              style=wx.DEFAULT_FRAME_STYLE, title='TestLink Case Executor')
        self.SetClientSize(wx.Size(737, 459))

        self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1', parent=self,
              pos=wx.Point(0, 0), size=wx.Size(737, 459),
              style=wx.TAB_TRAVERSAL)

        self.CaseNameList = wx.ListBox(choices=[], id=wxID_FRAME1CASENAMELIST,
              name='CaseNameList', parent=self.panel1, pos=wx.Point(0, 0),
              size=wx.Size(392, 352), style=0)
        self.CaseNameList.Bind(wx.EVT_LISTBOX, self.OnCaseNameListListbox,
              id=wxID_FRAME1CASENAMELIST)

        self.sashWindow1 = wx.SashWindow(id=wxID_FRAME1SASHWINDOW1,
              name='sashWindow1', parent=self.panel1, pos=wx.Point(392, 0),
              size=wx.Size(344, 120), style=wx.CLIP_CHILDREN | wx.SW_3D)

        self.TestCaseName = wx.StaticText(id=wxID_FRAME1TESTCASENAME, label='',
              name='TestCaseName', parent=self.sashWindow1, pos=wx.Point(16,
              16), size=wx.Size(240, 24), style=0)

        self.TestCount = wx.StaticText(id=wxID_FRAME1TESTCOUNT, label='',
              name='TestCount', parent=self.sashWindow1, pos=wx.Point(280, 16),
              size=wx.Size(53, 13), style=0)

        self.PassButton = wx.Button(id=wxID_FRAME1PASSBUTTON, label='PASS',
              name='PassButton', parent=self.sashWindow1, pos=wx.Point(48, 64),
              size=wx.Size(75, 23), style=0)
        self.PassButton.Bind(wx.EVT_BUTTON, self.OnPassButtonButton,
              id=wxID_FRAME1PASSBUTTON)

        self.FailButton = wx.Button(id=wxID_FRAME1FAILBUTTON, label='FAIL',
              name='FailButton', parent=self.sashWindow1, pos=wx.Point(136, 64),
              size=wx.Size(75, 23), style=0)
        self.FailButton.Bind(wx.EVT_BUTTON, self.OnFailButtonButton,
              id=wxID_FRAME1FAILBUTTON)

        self.BlockButton = wx.Button(id=wxID_FRAME1BLOCKBUTTON, label='BLOCK',
              name='BlockButton', parent=self.sashWindow1, pos=wx.Point(224,
              64), size=wx.Size(75, 23), style=0)
        self.BlockButton.Bind(wx.EVT_BUTTON, self.OnBlockButtonButton,
              id=wxID_FRAME1BLOCKBUTTON)

        self.BackButton = wx.Button(id=wxID_FRAME1BACKBUTTON, label='<-',
              name='BackButton', parent=self.sashWindow1, pos=wx.Point(16, 64),
              size=wx.Size(24, 23), style=0)
        self.BackButton.Bind(wx.EVT_BUTTON, self.OnBackButton,
              id=wxID_FRAME1BACKBUTTON)

        self.ForwardButton = wx.Button(id=wxID_FRAME1FORWARDBUTTON, label='->',
              name='ForwardButton', parent=self.sashWindow1, pos=wx.Point(312,
              64), size=wx.Size(24, 23), style=0)
        self.ForwardButton.Bind(wx.EVT_BUTTON, self.OnForwardButtonButton,
              id=wxID_FRAME1FORWARDBUTTON)

        self.window1 = wx.Window(id=wxID_FRAME1WINDOW1, name='window1',
              parent=self.panel1, pos=wx.Point(0, 352), size=wx.Size(736, 88),
              style=0)

        self.htmlWindow1 = wx.html.HtmlWindow(id=wxID_FRAME1HTMLWINDOW1,
              name='htmlWindow1', parent=self.window1, pos=wx.Point(0,0),
              size=wx.Size(736, 100), style=wx.html.HW_SCROLLBAR_AUTO)

        self.GetTestCases = wx.Button(id=wxID_FRAME1GETTESTCASES,
              label='Create Test Plan', name='GetTestCases',
              parent=self.sashWindow1, pos=wx.Point(16, 96), size=wx.Size(152,
              23), style=0)
        self.GetTestCases.Bind(wx.EVT_BUTTON, self.OnGetTestCasesButton,
              id=wxID_FRAME1GETTESTCASES)

        self.CaseGauge = wx.Gauge(id=wxID_FRAME1CASEGAUGE, name='CaseGauge',
              parent=self.panel1, pos=wx.Point(8, 440), range=100,
              size=wx.Size(576, 16), style=wx.GA_HORIZONTAL)

        self.CaseTracker = wx.StaticText(id=wxID_FRAME1CASETRACKER, label='',
              name='CaseTracker', parent=self.panel1, pos=wx.Point(600, 443),
              size=wx.Size(0, 13), style=0)

        self.LoadTestPlan = wx.Button(id=wxID_FRAME1LOADTESTPLAN,
              label='Load Test Plan', name='LoadTestPlan',
              parent=self.sashWindow1, pos=wx.Point(184, 96), size=wx.Size(152,
              23), style=0)
        self.LoadTestPlan.Bind(wx.EVT_BUTTON, self.OnLoadTestPlanButton,
              id=wxID_FRAME1LOADTESTPLAN)

        self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1,
              label='Filter', name='staticText1', parent=self.sashWindow1,
              pos=wx.Point(16, 48), size=wx.Size(25, 13), style=0)

        self.FilterChoice = wx.Choice(choices=[], id=wxID_FRAME1FILTERCHOICE,
              name='FilterChoice', parent=self.sashWindow1, pos=wx.Point(48,
              40), size=wx.Size(280, 21), style=0)
        self.FilterChoice.Bind(wx.EVT_CHOICE, self.OnFilterChoiceChoice,
              id=wxID_FRAME1FILTERCHOICE)

        self.PiePanel = wx.Panel(id=wxID_FRAME1PIEPANEL, name='PiePanel',
              parent=self.panel1, pos=wx.Point(392, 120), size=wx.Size(344,
              232), style=wx.TAB_TRAVERSAL)
              
        self.PieChart = PC.PieCtrl(id=wxID_PIECHART, name='PieChart',
              parent=self.PiePanel, pos=wx.Point(0, -300), size=wx.Size(344,
            820), style=wx.TAB_TRAVERSAL)
              
        self.PassPart = PC.PiePart()
        self.PassPart.SetLabel("Passed")
        self.PassPart.SetValue(1)
        self.PassPart.SetColour(wx.Colour(0, 255, 0))
        self.PieChart._series.append(self.PassPart)
        
        self.FailPart = PC.PiePart()
        self.FailPart.SetLabel("Failed")
        self.FailPart.SetValue(1)
        self.FailPart.SetColour(wx.Colour(255, 0, 0))
        self.PieChart._series.append(self.FailPart)
        
        self.BlockPart = PC.PiePart()
        self.BlockPart.SetLabel("Blocked")
        self.BlockPart.SetValue(1)
        self.BlockPart.SetColour(wx.Colour(0, 0, 255))
        self.PieChart._series.append(self.BlockPart)
        
        self.NotRunPart = PC.PiePart()
        self.NotRunPart.SetLabel("Not Run")
        self.NotRunPart.SetValue(1)
        self.NotRunPart.SetColour(wx.Colour(0, 0, 0))
        self.PieChart._series.append(self.NotRunPart)
Example #6
0
    def __init__(self,
                 parent,
                 id=wx.ID_ANY,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.TAB_TRAVERSAL,
                 name='',
                 resizable=False):

        super(ToolSet, self).__init__(parent, id, pos, size, style, name)

        # Load the bitmaps if needed
        if ToolSet._triUp is None:
            ToolSet._triRight = wx.Bitmap('../data/ui/triRight.png',
                                          wx.BITMAP_TYPE_PNG)
            ToolSet._triDown = wx.Bitmap('../data/ui/triDown.png',
                                         wx.BITMAP_TYPE_PNG)

        # Setup a link to the parent, to refresh it when tool sets open or close
        self._parentVBox = parent._vBox

        # Setup the tool set title
        self._title = wx.Panel(self)
        self._title.SetBackgroundColour((180, 180, 180))

        titleLabel = wx.StaticText(self._title, label=name)
        self._titleBitmap = wx.StaticBitmap(self._title,
                                            bitmap=ToolSet._triDown)

        titleHBox = wx.BoxSizer(wx.HORIZONTAL)
        titleHBox.Add(self._titleBitmap, 0, wx.CENTER | wx.ALL, 3)
        titleHBox.Add(titleLabel, 1, wx.ALL, 3)
        self._title.SetSizer(titleHBox)

        # A 1 px panel for spacing
        spacing = wx.Panel(self, size=(-1, 1))
        spacing.SetBackgroundColour((150, 150, 150))

        self._vBox = wx.BoxSizer(wx.VERTICAL)
        self._vBox.Add(self._title, 0, wx.EXPAND)
        self._vBox.Add(spacing, 0, wx.EXPAND)

        # Create the panel
        # If the tool set is resizable, create the panel in a sash window
        if resizable:
            # Setup the main tool set panel
            self._sashWindow = wx.SashWindow(self)
            self._sashWindow.SetSashVisible(wx.SASH_BOTTOM, True)
            self._vBox.Add(self._sashWindow, 0, wx.EXPAND)

            self._panel = wx.Panel(self._sashWindow)
            self._vBoxSashWindow = wx.BoxSizer(wx.VERTICAL)
            self._vBoxSashWindow.Add(self._panel, 0, wx.EXPAND)
            self._sashWindow.SetSizer(self._vBoxSashWindow)

            self._sashWindow.Bind(wx.EVT_SASH_DRAGGED, self.toolSetResize)
        else:
            # Setup the main tool set panel
            self._panel = wx.Panel(self)
            self._vBox.Add(self._panel, 0, wx.EXPAND)

        # Create the sizer for the panel
        self._panelVBox = wx.BoxSizer(wx.VERTICAL)
        self._panel.SetSizer(self._panelVBox)

        self.SetSizer(self._vBox)

        # Setup initial state
        self._opened = True

        # Bind events
        self._title.Bind(wx.EVT_LEFT_DCLICK, self.processOpenClose)
        titleLabel.Bind(wx.EVT_LEFT_DCLICK, self.processOpenClose)
        self._titleBitmap.Bind(wx.EVT_LEFT_DOWN, self.processOpenClose)
        self._titleBitmap.Bind(wx.EVT_LEFT_DCLICK, self.processOpenClose)
Example #7
0
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self,
                           id=wxID_TAUC,
                           name='Tauc',
                           parent=prnt,
                           pos=wx.Point(232, 134),
                           size=wx.Size(752, 445),
                           style=wx.DEFAULT_DIALOG_STYLE,
                           title="Tauc's Plot")
        self.SetClientSize(wx.Size(752, 445))

        self.sashWindow1 = wx.SashWindow(id=wxID_TAUCSASHWINDOW1,
                                         name='sashWindow1',
                                         parent=self,
                                         pos=wx.Point(168, 16),
                                         size=wx.Size(552, 384),
                                         style=wx.CLIP_CHILDREN | wx.SW_3D)
        self.sashWindow1.Bind(wx.EVT_PAINT, self.OnSashWindow1Paint)
        self.sashWindow1.Bind(wx.EVT_LEFT_DOWN, self.OnSashWindow1LeftDown)

        self.txtGap = wx.TextCtrl(id=wxID_TAUCTXTGAP,
                                  name='txtGap',
                                  parent=self,
                                  pos=wx.Point(40, 272),
                                  size=wx.Size(80, 26),
                                  style=0,
                                  value='textCtrl1')

        self.staticBox1 = wx.StaticBox(id=wxID_TAUCSTATICBOX1,
                                       label='Energy Gap (eV)',
                                       name='staticBox1',
                                       parent=self,
                                       pos=wx.Point(16, 248),
                                       size=wx.Size(136, 56),
                                       style=0)

        self.staticText1 = wx.StaticText(id=wxID_TAUCSTATICTEXT1,
                                         label='eV',
                                         name='staticText1',
                                         parent=self,
                                         pos=wx.Point(420, 410),
                                         size=wx.Size(20, 20),
                                         style=0)

        self.staticText2 = wx.StaticText(id=wxID_TAUCSTATICTEXT2,
                                         label='sqrt(alpha*E)',
                                         name='staticText2',
                                         parent=self,
                                         pos=wx.Point(55, 176),
                                         size=wx.Size(95, 20),
                                         style=0)

        self.txtSlope = wx.TextCtrl(id=wxID_TAUCTXTSLOPE,
                                    name='txtSlope',
                                    parent=self,
                                    pos=wx.Point(40, 360),
                                    size=wx.Size(80, 26),
                                    style=0,
                                    value='textCtrl1')

        self.staticBox2 = wx.StaticBox(id=wxID_TAUCSTATICBOX2,
                                       label='B (sqrt [cm*eV])',
                                       name='staticBox2',
                                       parent=self,
                                       pos=wx.Point(16, 336),
                                       size=wx.Size(136, 56),
                                       style=0)
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_PROPERTIESDIALOG,
              name=u'PropertiesDialog', parent=prnt, pos=wx.Point(483, 325),
              size=wx.Size(775, 446), style=wx.DEFAULT_DIALOG_STYLE,
              title=u'Properties')
        self._init_utils()
        self.SetClientSize(wx.Size(775, 446))
        self.Center(wx.BOTH)
        self.Bind(wx.EVT_ACTIVATE, self.OnPropertiesDialogActivate)

        self.AddProp = wx.Button(id=wxID_PROPERTIESDIALOGADDPROP,
              label=u'Add Property', name=u'AddProp', parent=self,
              pos=wx.Point(439, 399), size=wx.Size(125, 30), style=0)
        self.AddProp.Bind(wx.EVT_BUTTON, self.OnAddPropButton,
              id=wxID_PROPERTIESDIALOGADDPROP)

        self.splitterWindow1 = wx.SplitterWindow(id=wxID_PROPERTIESDIALOGSPLITTERWINDOW1,
              name='splitterWindow1', parent=self, point=wx.Point(8, 79),
              size=wx.Size(760, 308), style=wx.ALWAYS_SHOW_SB | wx.SP_3D)
        self.splitterWindow1.SetBestFittingSize(wx.Size(760, 305))

        self.sashWindow2 = wx.SashWindow(id=wxID_PROPERTIESDIALOGSASHWINDOW2,
              name='sashWindow2', parent=self.splitterWindow1, pos=wx.Point(204,
              0), size=wx.Size(556, 305),
              style=wx.ALWAYS_SHOW_SB | wx.CLIP_CHILDREN | wx.HSCROLL | wx.VSCROLL | wx.SW_3D)
        self.sashWindow2.SetAutoLayout(True)
        self.sashWindow2.SetBestFittingSize(wx.Size(556, 285))
        self.sashWindow2.SetMaximumSizeY(375)

        self.nameBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGNAMEBOX,
              name=u'nameBox', parent=self, pos=wx.Point(208, 40),
              size=wx.Size(144, 25), style=0, value=u'')

        self.idBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGIDBOX, name=u'idBox',
              parent=self, pos=wx.Point(360, 40), size=wx.Size(283, 25),
              style=0, value=u'')

        self.typeChoice = wx.Choice(choices=["boolean", "char", "double",
              "float", "short", "long", "objref", "octet", "string", "ulong",
              "ushort"], id=wxID_PROPERTIESDIALOGTYPECHOICE, name=u'typeChoice',
              parent=self.sashWindow2, pos=wx.Point(32, 105), size=wx.Size(100,
              27), style=0)
        self.typeChoice.SetBestFittingSize(wx.Size(100, 27))

        self.elementChoice = wx.Choice(choices=["Simple", "SimpleSequence",
              "Test", "Struct", "StructSequence"],
              id=wxID_PROPERTIESDIALOGELEMENTCHOICE, name=u'elementChoice',
              parent=self, pos=wx.Point(32, 40), size=wx.Size(152, 27),
              style=0)
        self.elementChoice.Bind(wx.EVT_CHOICE, self.OnElementChoiceChoice,
              id=wxID_PROPERTIESDIALOGELEMENTCHOICE)

        self.modeChoice = wx.Choice(choices=["readonly", "readwrite",
              "writeonly"], id=wxID_PROPERTIESDIALOGMODECHOICE,
              name=u'modeChoice', parent=self, pos=wx.Point(653, 39),
              size=wx.Size(104, 27), style=0)

        self.description = wx.TextCtrl(id=wxID_PROPERTIESDIALOGDESCRIPTION,
              name=u'description', parent=self.sashWindow2, pos=wx.Point(16,
              32), size=wx.Size(272, 40), style=wx.TE_MULTILINE, value=u'')

        self.unitsChoice = wx.Choice(choices=["None", "Hz", "W", "V", "cycles_per_sample"],
              id=wxID_PROPERTIESDIALOGUNITSCHOICE, name=u'unitsChoice',
              parent=self.sashWindow2, pos=wx.Point(185, 105), size=wx.Size(85,
              27), style=0)
        self.unitsChoice.SetBestFittingSize(wx.Size(85, 27))

        self.minBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGMINBOX,
              name=u'minBox', parent=self.sashWindow2, pos=wx.Point(184, 236),
              size=wx.Size(80, 25), style=0, value=u'min')

        self.maxBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGMAXBOX,
              name=u'maxBox', parent=self.sashWindow2, pos=wx.Point(184, 268),
              size=wx.Size(80, 25), style=0, value=u'max')

        self.staticText1 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT1,
              label=u'Description', name='staticText1', parent=self.sashWindow2,
              pos=wx.Point(16, 11), size=wx.Size(76, 17), style=0)

        self.kindChoice = wx.Choice(choices=["allocation", "configure", "test",
              "execparam", "factoryparam"], id=wxID_PROPERTIESDIALOGKINDCHOICE,
              name=u'kindChoice', parent=self.sashWindow2, pos=wx.Point(27,
              170), size=wx.Size(110, 27), style=0)
        self.kindChoice.SetBestFittingSize(wx.Size(110, 27))
        self.kindChoice.Bind(wx.EVT_CHOICE, self.OnKindChoiceChoice,
              id=wxID_PROPERTIESDIALOGKINDCHOICE)

        self.staticText2 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT2,
              label=u'Type', name='staticText2', parent=self.sashWindow2,
              pos=wx.Point(65, 84), size=wx.Size(39, 17), style=0)

        self.staticText3 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT3,
              label=u'Units', name='staticText3', parent=self.sashWindow2,
              pos=wx.Point(212, 84), size=wx.Size(41, 17), style=0)

        self.staticText4 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT4,
              label=u'Kind', name='staticText4', parent=self.sashWindow2,
              pos=wx.Point(69, 149), size=wx.Size(36, 17), style=0)

        self.staticText5 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT5,
              label=u'Range', name='staticText5', parent=self.sashWindow2,
              pos=wx.Point(205, 215), size=wx.Size(48, 17), style=0)

        self.staticText6 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT6,
              label=u'Value(s)', name='staticText6', parent=self.sashWindow2,
              pos=wx.Point(362, 23), size=wx.Size(58, 17), style=0)

        self.sashWindow1 = wx.SashWindow(id=wxID_PROPERTIESDIALOGSASHWINDOW1,
              name='sashWindow1', parent=self.splitterWindow1, pos=wx.Point(0,
              0), size=wx.Size(199, 305), style=wx.CLIP_CHILDREN | wx.SW_3D)
        self.splitterWindow1.SplitVertically(self.sashWindow1, self.sashWindow2,
              200)

        self.valueBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGVALUEBOX,
              name=u'valueBox', parent=self.sashWindow2, pos=wx.Point(336, 44),
              size=wx.Size(100, 25), style=0, value=u'')
        self.valueBox.SetBestFittingSize(wx.Size(100, 25))

        root = __file__
        if os.path.islink (root):
              root = os.path.realpath (root)
        root = os.path.dirname (os.path.abspath (root))
        self.addValue = wx.BitmapButton(bitmap=wx.Bitmap( root + '/images/plus.bmp',
              wx.BITMAP_TYPE_BMP), id=wxID_PROPERTIESDIALOGADDVALUE,
              name=u'addValue', parent=self.sashWindow2, pos=wx.Point(456, 44),
              size=wx.Size(24, 24), style=wx.BU_AUTODRAW)
        self.addValue.Bind(wx.EVT_BUTTON, self.OnAddValueButton,
              id=wxID_PROPERTIESDIALOGADDVALUE)

        self.staticText7 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT7,
              label=u'Element Type', name='staticText7', parent=self,
              pos=wx.Point(57, 16), size=wx.Size(141, 17), style=0)

        self.staticText8 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT8,
              label=u'Name', name='staticText8', parent=self, pos=wx.Point(252,
              16), size=wx.Size(45, 17), style=0)

        self.staticText9 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT9,
              label=u'ID', name='staticText9', parent=self, pos=wx.Point(485,
              16), size=wx.Size(24, 17), style=0)

        self.staticText10 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT10,
              label=u'Mode', name='staticText10', parent=self, pos=wx.Point(687,
              16), size=wx.Size(42, 17), style=0)

        self.valueList = wx.ListCtrl(id=wxID_PROPERTIESDIALOGVALUELIST,
              name=u'valueList', parent=self.sashWindow2, pos=wx.Point(316, 82),
              size=wx.Size(185, 206),
              style=wx.ALWAYS_SHOW_SB | wx.LC_EDIT_LABELS | wx.LC_VRULES | wx.LC_REPORT | wx.SIMPLE_BORDER | wx.LC_HRULES | wx.VSCROLL | wx.LC_SINGLE_SEL)
        self.valueList.SetBestFittingSize(wx.Size(185, 206))
        self._init_coll_valueList_Columns(self.valueList)
        self.valueList.Bind(wx.EVT_RIGHT_UP, self.OnValueListRightUp)

        self.Cancel = wx.Button(id=wxID_PROPERTIESDIALOGCANCEL, label=u'Cancel',
              name=u'Cancel', parent=self, pos=wx.Point(680, 399),
              size=wx.Size(85, 30), style=0)
        self.Cancel.Bind(wx.EVT_BUTTON, self.OnCancelButton,
              id=wxID_PROPERTIESDIALOGCANCEL)

        self.enumBox = wx.TextCtrl(id=wxID_PROPERTIESDIALOGENUMBOX,
              name=u'enumBox', parent=self.sashWindow2, pos=wx.Point(20, 251),
              size=wx.Size(125, 25), style=0, value=u'')

        self.staticText11 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT11,
              label=u'Enumeration', name=u'staticText11',
              parent=self.sashWindow2, pos=wx.Point(36, 230), size=wx.Size(90,
              17), style=0)

        self.ok = wx.Button(id=wxID_PROPERTIESDIALOGOK, label=u'OK', name=u'ok',
              parent=self, pos=wx.Point(579, 399), size=wx.Size(85, 30),
              style=0)
        self.ok.Bind(wx.EVT_BUTTON, self.OnOkButton, id=wxID_PROPERTIESDIALOGOK)

        self.actionChoice = wx.Choice(choices=["eq", "ne", "gt", "lt", "ge",
              "le", "external"], id=wxID_PROPERTIESDIALOGACTIONCHOICE,
              name=u'actionChoice', parent=self.sashWindow2, pos=wx.Point(185,
              170), size=wx.Size(85, 27), style=0)

        self.staticText12 = wx.StaticText(id=wxID_PROPERTIESDIALOGSTATICTEXT12,
              label=u'Action', name='staticText12', parent=self.sashWindow2,
              pos=wx.Point(209, 149), size=wx.Size(50, 17), style=0)