def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_FRAME1, name='Frame1', parent=prnt, pos=wx.Point(173, 135), size=wx.Size(417, 149), style=wx.DEFAULT_FRAME_STYLE, title='wxFrame1') self.SetAutoLayout(True) self.SetClientSize(wx.Size(409, 122)) self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1, label='staticText1', name='staticText1', parent=self, pos=wx.Point(23, 25), size=wx.Size(52, 13), style=0) self.textCtrl1 = wx.TextCtrl(id=wxID_FRAME1TEXTCTRL1, name='textCtrl1', parent=self, pos=wx.Point(96, 25), size=wx.Size(288, 23), style=0, value='textCtrl1') self.textCtrl1.SetConstraints(LayoutAnchors(self.textCtrl1, True, True, True, True)) self.button1 = wx.Button(id=wxID_FRAME1BUTTON1, label='button1', name='button1', parent=self, pos=wx.Point(216, 72), size=wx.Size(72, 24), style=0) self.button1.SetConstraints(LayoutAnchors(self.button1, False, False, True, True)) self.button2 = wx.Button(id=wxID_FRAME1BUTTON2, label='button2', name='button2', parent=self, pos=wx.Point(312, 72), size=wx.Size(72, 24), style=0) self.button2.SetConstraints(LayoutAnchors(self.button2, False, False, True, True))
def _init_ctrls(self, prnt): # generated method, don't edit wx.Dialog.__init__(self, id=wxID_MAKEPYDIALOG, name='MakePyDialog', parent=prnt, pos=wx.Point(498, 119), size=wx.Size(420, 433), style=wx.DEFAULT_DIALOG_STYLE | wx.RESIZE_BORDER, title='COM Library Generator') self.SetAutoLayout(True) self.SetClientSize(wx.Size(412, 406)) self.Bind(wx.EVT_INIT_DIALOG, self.OnMakepydialogInitDialog) self.typeLibraryList = wx.ListCtrl(id=wxID_MAKEPYDIALOGTYPELIBRARYLIST, name='typeLibraryList', parent=self, pos=wx.Point(16, 40), size=wx.Size(376, 280), style=wx.LC_NO_HEADER | wx.LC_REPORT, validator=wx.DefaultValidator) self.typeLibraryList.SetToolTipString('List of the registered COM type libraries on your system') self.typeLibraryList.SetConstraints(LayoutAnchors(self.typeLibraryList, True, True, True, True)) self._init_coll_typeLibraryList_Columns(self.typeLibraryList) self.typeLibraryList.Bind(wx.EVT_LEFT_DCLICK, self.OnTypelibrarylistLeftDclick) self.OK = wx.Button(id=wxID_MAKEPYDIALOGOK, label='Generate', name='OK', parent=self, pos=wx.Point(200, 360), size=wx.Size(88, 27), style=0) self.OK.SetToolTipString('Click to generate a wrapper for the selected library') self.OK.SetConstraints(LayoutAnchors(self.OK, False, False, True, True)) self.OK.Bind(wx.EVT_BUTTON, self.OnOkButton, id=wxID_MAKEPYDIALOGOK) self.Cancel = wx.Button(id=wx.ID_CANCEL, label='Cancel', name='Cancel', parent=self, pos=wx.Point(304, 360), size=wx.Size(88, 27), style=0) self.Cancel.SetToolTipString('Cancel wrapper generation') self.Cancel.SetConstraints(LayoutAnchors(self.Cancel, False, False, True, True)) self.bForDemand = wx.CheckBox(id=wxID_MAKEPYDIALOGBFORDEMAND, label='Generate Classes on Demand', name='bForDemand', parent=self, pos=wx.Point(144, 328), size=wx.Size(248, 20), style=0) self.bForDemand.SetToolTipString('Minimises amount of code generated by only wrapping used classes (recommended). Clear to generate a single-file wrapper.') self.bForDemand.SetValue(True) self.bForDemand.SetConstraints(LayoutAnchors(self.bForDemand, False, False, True, True)) self.bForDemand.Bind(wx.EVT_CHECKBOX, self.OnBfordemandCheckbox, id=wxID_MAKEPYDIALOGBFORDEMAND) self.directSpecification = wx.TextCtrl(id=wxID_MAKEPYDIALOGDIRECTSPECIFICATION, name='directSpecification', parent=self, pos=wx.Point(16, 8), size=wx.Size(376, 28), style=0, value='') self.directSpecification.SetToolTipString('Type text here to search for matching type libraries') self.directSpecification.SetConstraints(LayoutAnchors(self.directSpecification, True, True, True, False)) self.directSpecification.Bind(wx.EVT_TEXT, self.OnDirectspecificationText, id=wxID_MAKEPYDIALOGDIRECTSPECIFICATION)
def AddResultsListControl(self): """ self.listCtrl1 = wx.ListCtrl(id=wxID_MDICHILDKEYWORDSLISTCTRL1, name='listCtrl1', parent=self.panKeywords, pos=wx.Point(8, 136), size=wx.Size(1016, 528), style=wx.LC_ICON) """ listID = wx.NewId() self.listSearchResults = CustomListCtrl(self.panKeywords, listID, pos=wx.Point(8, 136), size=wx.Size(1016, 528), style=wx.LC_REPORT | wx.BORDER_NONE ) self.listSearchResults.SetConstraints(LayoutAnchors(self.listSearchResults, True, True, True, True)) self.listSearchResults.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Tahoma')) # Now that the list exists we can init the other base class, # see wx/lib/mixins/listctrl.py #listmix.ColumnSorterMixin.__init__(self, 1) #self.Bind(wx.EVT_LIST_COL_CLICK, self.OnListColClick, self.listSearchResults) self.listSearchResults.Bind(wx.EVT_LEFT_DCLICK, self.OnListSearchResultsLeftDclick) self.AddListColumnHeadings()
def _init_ctrls(self, prnt): wx.Frame.__init__(self, id=wxID_IAT_VIEWER, name='iat_viewer', parent=prnt, pos=wx.Point(439, 269), size=wx.Size(548, 352), style=wx.FRAME_NO_TASKBAR | wx.FRAME_FLOAT_ON_PARENT | wx.DEFAULT_FRAME_STYLE, title='Import Table Viewer') self.Centre() self._init_utils() self.SetClientSize(wx.Size(600, 400)) self.SetMinSize(wx.Size(500, 250)) self.Bind(wx.EVT_CLOSE, self.OnClose) self.dllList = wx.ListCtrl(id=wxDLL_LIST, name='dllList', parent=self, pos=wx.Point(0, 144), size=wx.Size(600, 200), style=wx.LC_SINGLE_SEL | wx.LC_REPORT | wx.LC_SORT_ASCENDING) self.dllList.SetConstraints( LayoutAnchors(self.dllList, True, True, True, True)) self._init_coll_dllList_Columns(self.dllList) self.dllList.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OndllListItemSelected, id=wxDLL_LIST) self.dllList.Bind(wx.EVT_RIGHT_DOWN, self.OnDllListRightDown) self.taskStatus = wx.StatusBar(id=wxID_IMPORT_VIEWERTASKSTATUS, name='taskStatus', parent=self, style=0) self._init_coll_taskStatus_Fields(self.taskStatus) self.SetStatusBar(self.taskStatus) self.functionList = wx.ListCtrl(id=wxFUNCTION_LIST, name='importList', parent=self, pos=wx.Point(0, 0), size=wx.Size(600, 200), style=wx.LC_SINGLE_SEL | wx.LC_REPORT) self._init_coll_functionList_Columns(self.functionList) self.functionList.Bind(wx.EVT_RIGHT_DOWN, self.OnImportsListRightDown) self._init_sizers()
def _init_ctrls(self, prnt): wx.Frame.__init__(self, id=wxID_TASK_VIEWER, name='task_viewer', parent=prnt, pos=wx.Point(439, 269), size=wx.Size(548, 352), style=wx.FRAME_NO_TASKBAR | wx.FRAME_FLOAT_ON_PARENT | wx.DEFAULT_FRAME_STYLE, title='Tasks Viewer') self.Centre() self._init_utils() self.SetClientSize(wx.Size(540, 318)) self.SetMinSize(wx.Size(500, 250)) self.Bind(wx.EVT_CLOSE, self.OnClose) self.splitter = wx.SplitterWindow(self, style=wx.SP_LIVE_UPDATE) self.moduleList = wx.ListCtrl(id=wxID_TASK_VIEWERMODULELIST, name='moduleList', parent=self.splitter, style=wx.LC_SINGLE_SEL | wx.LC_REPORT | wx.LC_SORT_ASCENDING) self.moduleList.SetConstraints( LayoutAnchors(self.moduleList, True, True, True, True)) #self.moduleList.SetBackgroundColour("black") #self.moduleList.SetTextColour("white") self._init_coll_moduleList_Columns(self.moduleList) self.taskStatus = wx.StatusBar(id=wxID_TASK_VIEWERTASKSTATUS, name='taskStatus', parent=self, style=0) self._init_coll_taskStatus_Fields(self.taskStatus) self.SetStatusBar(self.taskStatus) self.processList = wx.ListCtrl(id=wxID_TASK_VIEWERPROCESSLIST, name='processList', parent=self.splitter, style=wx.LC_SINGLE_SEL | wx.LC_SORT_ASCENDING | wx.LC_REPORT) self._init_coll_processList_Columns(self.processList) self.processList.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnProcessListListItemSelected, id=wxID_TASK_VIEWERPROCESSLIST) self.processList.Bind(wx.EVT_RIGHT_DOWN, self.OnProcessListRightDown) self.splitter.SetMinimumPaneSize(100) self.splitter.SplitHorizontally(self.processList, self.moduleList) self._init_sizers()
def CreateHTMLCtrl(self): self.htmlMessage = wx.html.HtmlWindow(self.panHTMLMessage, -1, wx.Point(0, 0), wx.Size(768, 286)) if "gtk2" in wx.PlatformInfo: self.htmlMessage.SetStandardFonts() self.htmlMessage.SetConstraints( LayoutAnchors(self.htmlMessage, True, True, True, True))
def resizePathLabel(self, oldHeight, newHeight, oldWidth): if newHeight != oldHeight: self.htmlWindow1.SetSize( (oldWidth, newHeight) ) self.lcFiles.SetConstraints(None) (x, y), (w, h) = self.calcListDims() self.lcFiles.SetDimensions(x, y, w, h) self.lcFiles.SetConstraints( LayoutAnchors(self.lcFiles, True, True, True, True))
def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_FRAME4, name='', parent=prnt, pos=wx.Point(591, 348), size=wx.Size(255, 234), style=wx.FRAME_TOOL_WINDOW | wx.STAY_ON_TOP | wx.NO_FULL_REPAINT_ON_RESIZE | wx.DEFAULT_FRAME_STYLE, title='Frame4') self._init_utils() self.SetClientSize(wx.Size(247, 200)) self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, 'Tahoma')) self.SetBackgroundStyle(1) self.SetBestFittingSize(wx.Size(255, 234)) self.SetMinSize(wx.Size(191, 234)) self.Show(True) self.SetMenuBar(self.menuBar1) self.SetStatusBarPane(-1) self.Enable(True) self.Bind(wx.EVT_ICONIZE, self.OnFrame4Iconize) self.Bind(wx.EVT_CLOSE, self.OnFrame4Close) self.listBox1 = wx.ListBox(choices=[], id=wxID_FRAME4LISTBOX1, name='listBox1', parent=self, pos=wx.Point(0, 0), size=wx.Size(247, 158), style=wx.LB_SORT | wx.LB_SINGLE | wx.CAPTION | wx.VSCROLL) self.listBox1.SetAutoLayout(True) self.listBox1.SetBackgroundColour(wx.Colour(255, 255, 128)) self.listBox1.SetLabel('') self.listBox1.SetSelection(-1) self.listBox1.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, 'Tahoma')) self.listBox1.Bind(wx.EVT_LISTBOX_DCLICK, self.OnListBox1ListboxDclick, id=wxID_FRAME4LISTBOX1) self.statusBar1 = wx.StatusBar(id=wxID_FRAME4STATUSBAR1, name='statusBar1', parent=self, style=0) self.statusBar1.SetAutoLayout(True) self.statusBar1.SetConstraints( LayoutAnchors(self.statusBar1, True, True, False, False)) self.statusBar1.SetFont( wx.Font(8, wx.SWISS, wx.NORMAL, wx.BOLD, False, 'Tahoma')) self.statusBar1.SetFieldsCount(2) self._init_coll_statusBar1_Fields(self.statusBar1) self.SetStatusBar(self.statusBar1)
def _init_ctrls(self, prnt): # generated method, don't edit wx.Dialog.__init__(self, id=wxID_MASKEDEDITFORMATCODESDLG, name='MaskedEditFormatCodesDlg', parent=prnt, pos=wx.Point(433, 218), size=wx.Size(436, 399), style=wx.RESIZE_BORDER | wx.DEFAULT_DIALOG_STYLE, title=_('Masked Edit - Format Codes')) self.SetClientSize(wx.Size(428, 372)) self.SetAutoLayout(True) self.Center(wx.BOTH) self.clbFormatCodes =wx.CheckListBox(choices=[], id=wxID_MASKEDEDITFORMATCODESDLGCLBFORMATCODES, name='clbFormatCodes', parent=self, pos=wx.Point(8, 33), size=wx.Size(413, 258), style=wx.LB_HSCROLL | wx.LB_SINGLE) self.clbFormatCodes.SetConstraints(LayoutAnchors(self.clbFormatCodes, True, True, True, True)) self.clbFormatCodes.Bind(wx.EVT_CHECKLISTBOX, self.OnClbformatcodesChecklistbox, id=wxID_MASKEDEDITFORMATCODESDLGCLBFORMATCODES) self.tcFormatCodePropVal =wx.TextCtrl(id=wxID_MASKEDEDITFORMATCODESDLGTCFORMATCODEPROPVAL, name='tcFormatCodePropVal', parent=self, pos=wx.Point(8, 299), size=wx.Size(413, 25), style=0, value=self.formatCode) self.tcFormatCodePropVal.SetConstraints(LayoutAnchors(self.tcFormatCodePropVal, True, False, True, True)) self.btnOK =wx.Button(id=wx.ID_OK, label=_('OK'), name='btnOK', parent=self, pos=wx.Point(261, 340), size=wx.Size(75, 23), style=0) self.btnOK.SetConstraints(LayoutAnchors(self.btnOK, False, False, True, True)) self.btnCancel =wx.Button(id=wx.ID_CANCEL, label=_('Cancel'), name='btnCancel', parent=self, pos=wx.Point(346, 340), size=wx.Size(75, 23), style=0) self.btnCancel.SetConstraints(LayoutAnchors(self.btnCancel, False, False, True, True)) self.staticText1 =wx.StaticText(id=wxID_MASKEDEDITFORMATCODESDLGSTATICTEXT1, label=_('A string of formatting codes that modify behavior of the control.'), name='staticText1', parent=self, pos=wx.Point(8, 5), size=wx.Size(409, 24), style=wx.NO_BORDER | wx.ST_NO_AUTORESIZE) self.staticText1.SetConstraints(LayoutAnchors(self.staticText1, True, True, True, False))
def InitDirCheckView(self): self.treeDirCheckView = DirectoryCheckView( self.panDirView, id=wx.NewId(), pos=wx.Point(0, 0), size=wx.Size(352, 432), CheckedList=Globals.TextCatDirList) self.treeDirCheckView.SetConstraints( LayoutAnchors(self.treeDirCheckView, True, True, True, True)) self.treeCategoryCheckView = FileCategoryCheckView( self.panCategoryView, id=wx.NewId(), pos=wx.Point(8, 0), size=wx.Size(344, 432), CheckedList=Globals.TextCatCategoryList) self.treeCategoryCheckView.SetConstraints( LayoutAnchors(self.treeCategoryCheckView, True, True, True, True)) """
def CreateTextViewWindow(self): self.panTextView = wx.Panel(id=wx.NewId(), parent=self, pos=wx.Point(0, 0), size=wx.Size(672, 600)) self.panTextView.SetBackgroundColour(wx.Colour(225, 236, 255)) self.panTextView.SetAutoLayout(True) self.lblTextViewStatus = wx.StaticText(id=wx.NewId(), label='Staus', parent=self.panTextView, pos=wx.Point(8, 572), size=wx.Size(656, 20), style=wx.ST_NO_AUTORESIZE | wx.SUNKEN_BORDER) self.lblTextViewStatus.SetConstraints(LayoutAnchors(self.lblTextViewStatus, True, False, True, True)) self.textView = TextViewWindow(self.panTextView, self.lblTextViewStatus, id=wx.NewId(), pos=wx.Point(8, 8), size=wx.Size(656, 555)) self.textView.SetConstraints(LayoutAnchors(self.textView, True, True, True, True)) self.textView.Bind(wx.EVT_CONTEXT_MENU, self.OnTextViewRightUp) self.textView.Bind(wx.EVT_LEFT_UP, self.OnTextViewLeftUp) self.textViewer = hexedit.HexEdit() self.textView.setModel(self.textViewer) self.textViewer.attach(self) return self.panTextView
def InitCategoryCheckView(self): #if not Globals.MimeTypesSet: # Populate the Known MIME types list with what is in the database try: mtypes = wx.TheMimeTypesManager.EnumAllFileTypes() except wx.PyAssertionError: mtypes = [] # TODO: On wxMac, EnumAllFileTypes produces tons of dupes, which # causes quirky behavior because the list control doesn't expect # dupes, and simply wastes space. So remove the dupes for now, # then remove this hack when we fix EnumAllFileTypes on Mac. #mimes = set(mtypes) mimes = set() for mime in mtypes: if not mime.startswith('image') and not mime.startswith( 'audio') and not mime.startswith('video'): mimes.add(mime) """ mimes = {} for mt in mtypes: category = mt.lower().split("/") #print category if mimes.has_key(category[0]): if len(category) >= 2: if category[1] not in mimes[category[0]]: mimes[category[0]].append(category[1]) else: if len(category) >= 2: mimes[category[0]] = [category[1]] else: mimes[category[0]] = [] """ """ self.listCtrl1 = wx.ListCtrl(id=wxID_FRMEMAILPREPROCESSINGLISTCTRL1, name='listCtrl1', parent=self.panEmailPreProcessing, pos=wx.Point(152, 200), size=wx.Size(432, 368), style=wx.LC_ICON) """ self.treeCategoryCheckView = FileCategoryCheckView( self.panEmailPreProcessing, MimeTypeSet=mimes, id=wx.NewId(), pos=wx.Point(152, 200), size=wx.Size(432, 368), CheckedList=Globals.AttachmentsCheckedMimes) self.treeCategoryCheckView.SetConstraints( LayoutAnchors(self.treeCategoryCheckView, True, True, True, True))
def _init_ctrls(self, prnt): # generated method, don't edit if prnt != None: style = wx.DEFAULT_FRAME_STYLE | wx.FRAME_FLOAT_ON_PARENT else: style = wx.DEFAULT_FRAME_STYLE wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt, pos=wx.Point(509, 289), size=wx.Size(730, 644), style=style, title='Template editor') self.SetClientSize(wx.Size(712, 599)) self.toolBar1 = wx.ToolBar(id=wxID_FRAME1TOOLBAR1, name='toolBar1', parent=self, pos=wx.Point(0, 0), size=wx.Size(712, 28), style=wx.TB_FLAT | wx.TB_HORIZONTAL) self.toolBar1.SetConstraints( LayoutAnchors(self.toolBar1, True, True, True, False)) self.toolBar1.SetToolBitmapSize(wx.Size(22, 22)) self.SetToolBar(self.toolBar1) self.editor = Editor(id=wx.NewId(), parent=self, enh_menu=False, style=wx.TE_MULTILINE | wx.BORDER_THEME) self.editor.SetAutoLayout(True) self.editor.SetConstraints( LayoutAnchors(self.editor, True, True, True, True))
def InitCategoryCheckView(self): #if not Globals.MimeTypeSet: # Populate the Known MIME types list with what is in the database try: mtypes = wx.TheMimeTypesManager.EnumAllFileTypes() except wx.PyAssertionError: mtypes = [] # TODO: On wxMac, EnumAllFileTypes produces tons of dupes, which # causes quirky behavior because the list control doesn't expect # dupes, and simply wastes space. So remove the dupes for now, # then remove this hack when we fix EnumAllFileTypes on Mac. mimes = set() for mime in mtypes: if not mime.startswith('image') and not mime.startswith( 'audio') and not mime.startswith('video'): mimes.add(mime) #else: # mimes = Globals.MimeTypeSet """ self.treeCategoryCheckView = FileCategoryCheckView(self.panTextPreProcessing, MimeTypeSet=mimes, id=wx.NewId(),pos=wx.Point(16, 200), size=wx.Size(440, 384), CheckedList=Globals.TextCatCategoryList) self.treeCategoryCheckView.SetConstraints(LayoutAnchors(self.treeCategoryCheckView, True, True, True, True)) """ self.treeCategoryCheckView = FileCategoryCheckView( self.panCategoryView, MimeTypeSet=mimes, id=wx.NewId(), pos=wx.Point(8, 32), size=wx.Size(624, 392), CheckedList=Globals.KeywordsSearchCategoryList) self.treeCategoryCheckView.SetConstraints( LayoutAnchors(self.treeCategoryCheckView, True, True, True, True)) """ self.treeDirCheckView = DirectoryCheckView(self.panDirView, id=wx.NewId(), pos=wx.Point(8, 32), size=wx.Size(624, 392), CheckedList=Globals.KeywordsSearchDirList) self.treeDirCheckView.SetConstraints(LayoutAnchors(self.treeDirCheckView, True, True, True, True)) """ """
def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_WXFRAME2, name='', parent=prnt, pos=wx.Point(2, 2), size=wx.Size(649, 684), style=wx.DEFAULT_FRAME_STYLE, title='View Image as BIT Map') self.SetClientSize(wx.Size(641, 650)) self.scrolledWindow1 = wx.ScrolledWindow(id=wxID_WXFRAME2SCROLLEDWINDOW1, name='scrolledWindow1', parent=self, pos=wx.Point(0, 0), size=wx.Size(641, 650), style=wx.TAB_TRAVERSAL) self.scrolledWindow1.SetConstraints(LayoutAnchors(self.scrolledWindow1, True, True, True, True)) self.scrolledWindow1.SetAutoLayout(True) self.bmpImage = wx.StaticBitmap(bitmap=wx.NullBitmap, id=wxID_WXFRAME2BMPIMAGE, name='bmpImage', parent=self.scrolledWindow1, pos=wx.Point(0, 0), size=wx.Size(640, 648), style=0)
def _init_ctrls(self, prnt): wx.Frame.__init__(self, id=wxID_RELOCS, name='relocs', parent=prnt, pos=wx.Point(439, 266), size=wx.Size(705, 463), style=wx.DEFAULT_FRAME_STYLE, title='Relocations') self.Centre() self.SetClientSize(wx.Size(689, 427)) self.SetMinSize(wx.Size(500, 250)) self.Bind(wx.EVT_CLOSE, self.OnClose) self.Blocks = wx.ListCtrl( id=wxID_RELOC_BLOCKS_LIST, name='Blocks', parent=self, pos=wx.Point(16, 16), size=wx.Size(656, 192), style=wx.LC_SINGLE_SEL | wx.LC_REPORT) # wx.LC_SORT_ASCENDING isn't necessary in this case self.Blocks.SetConstraints( LayoutAnchors(self.Blocks, True, True, True, True)) self._init_relocblocks_colls(self.Blocks) self.Blocks.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnBlockSelected, id=wxID_RELOC_BLOCKS_LIST) self.BlocksItems = wx.ListCtrl( id=wxID_RELOC_BLOCKS_ITEMS, name='BlocksItems', parent=self, pos=wx.Point(16, 240), size=wx.Size(656, 168), style=wx.LC_SINGLE_SEL | wx.LC_REPORT) # wx.LC_SORT_ASCENDING isn't necessary in this case self._init_relocblocksitems_coll(self.BlocksItems) self._init_sizers()
def _init_ctrls(self, prnt): # generated method, don't edit wx.Panel.__init__(self, id=wxID_CONSOLECLASS, name='', parent=prnt, # pos=wx.Point(355, 226), size=wx.Size(604, 339), pos=wx.Point(0, 350), size=wx.Size(604, 339), style=wx.MAXIMIZE_BOX | wx.TAB_TRAVERSAL) self._init_utils() self.SetClientSize(wx.Size(596, 315)) self.SetAutoLayout(True) self.Console = wx.TextCtrl(id=wxID_CONSOLECLASSCONSOLE, name='Console', parent=self, pos=wx.Point(0, 0), size=wx.Size(596, 315), style=wx.TE_MULTILINE, value='') self.Console.SetFont(wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, false,'')) self.Console.SetConstraints(LayoutAnchors(self.Console, True, True, True, True)) wx.EVT_CHAR(self.Console, self.OnconsoleChar) wx.EVT_RIGHT_DOWN(self.Console, self.OnConsoleRightDown) wx.EVT_LEFT_UP(self.Console, self.OnConsoleLeftUp)
def CreateHTMLCtrl(self): self.panIEView = wx.Panel(id=wx.NewId(), parent=self, pos=wx.Point(0, 0), size=wx.Size(416, 316)) self.panIEView.SetBackgroundColour(wx.Colour(225, 236, 255)) self.panIEView.SetAutoLayout(True) self.htmlCtrl = wx.html.HtmlWindow(self.panIEView, -1, wx.Point(8,8), wx.Size(400, 300)) if "gtk2" in wx.PlatformInfo: self.htmlCtrl.SetStandardFonts() self.htmlCtrl.SetConstraints(LayoutAnchors(self.htmlCtrl, True, True, True, True)) """ self.auiManager.AddPane(self.CreateHTMLCtrl(), wx.aui.AuiPaneInfo(). Caption("HTML Content"). Float().FloatingPosition(self.GetStartPosition()). FloatingSize(wx.Size(300, 200)).CloseButton(True).MaximizeButton(True)) self.auiManager.Update() """ return self.panIEView
def updateDemoCtrl(self): demoModule = self.model.demoModule if demoModule: if self.demoCtrl: self.demoCtrl.Destroy() cwd = os.getcwd() os.chdir(demoDir) try: self.demoCtrl = demoModule.runTest(self.model.editor, self, self) finally: os.chdir(cwd) if self.demoCtrl: self.demoCtrl.SetSize(self.GetClientSize()) self.SetAutoLayout(True) self.demoCtrl.SetConstraints( LayoutAnchors(self.demoCtrl, True, True, True, True))
def CreateHashValuesView(self): self.panHashValues = wx.Panel(id=wx.NewId(), name='panHashValues', parent=self, pos=wx.Point(0, 0),size=wx.Size(250, 376), style=wx.CLIP_CHILDREN | wx.TAB_TRAVERSAL) self.panHashValues.SetBackgroundColour(wx.Colour(225, 236, 255)) self.panHashValues.SetAutoLayout(True) self.listCtrlHashValues = wx.ListCtrl(id=wx.NewId(), name='listCtrlHashValues', parent=self.panHashValues, pos=wx.Point(8, 8), size=wx.Size(234, 360), style=wx.VSCROLL | wx.LC_VRULES | wx.HSCROLL | wx.LC_HRULES | wx.LC_REPORT) self.listCtrlHashValues.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL, False, 'Tahoma')) self.listCtrlHashValues.SetConstraints(LayoutAnchors(self.listCtrlHashValues, True, True, True, True)) self.listCtrlHashValues.InsertColumn(col=0, format=wx.LIST_FORMAT_LEFT, heading='Algorithm', width=75) self.listCtrlHashValues.InsertColumn(col=1, format=wx.LIST_FORMAT_LEFT, heading='Value', width=150) return self.panHashValues
def _init_ctrls(self, prnt): # generated method, don't edit wx.Panel.__init__(self, id=wxID_PANEL2, name='', parent=prnt, pos=wx.Point(666, 439), size=wx.Size(353, 218), style=wx.TAB_TRAVERSAL) self.SetClientSize(wx.Size(345, 184)) self.scrolledWindow1 = wx.ScrolledWindow( id=wxID_PANEL2SCROLLEDWINDOW1, name='scrolledWindow1', parent=self, pos=wx.Point(16, 24), size=wx.Size(200, 100), style=wx.STATIC_BORDER | wx.ALWAYS_SHOW_SB | wx.HSCROLL | wx.VSCROLL) self.scrolledWindow1.SetConstraints( LayoutAnchors(self.scrolledWindow1, True, True, False, False))
def InitCategoryCheckView(self): #if not Globals.MimeTypeSet: # Populate the Known MIME types list with what is in the database try: mtypes = wx.TheMimeTypesManager.EnumAllFileTypes() except wx.PyAssertionError: mtypes = [] # TODO: On wxMac, EnumAllFileTypes produces tons of dupes, which # causes quirky behavior because the list control doesn't expect # dupes, and simply wastes space. So remove the dupes for now, # then remove this hack when we fix EnumAllFileTypes on Mac. """ mimes = {} for mt in mtypes: category = mt.lower().split("/") #print category if mimes.has_key(category[0]): if len(category) >= 2: if category[1] not in mimes[category[0]]: mimes[category[0]].append(category[1]) else: if len(category) >= 2: mimes[category[0]] = [category[1]] else: mimes[category[0]] = [] """ mimes = set() for mime in mtypes: if not mime.startswith('image') and not mime.startswith('audio') and not mime.startswith('video'): mimes.add(mime) #else: # mimes = Globals.MimeTypeSet self.treeCategoryCheckView = FileCategoryCheckView(self.panTextPreProcessing, MimeTypeSet=mimes, id=wx.NewId(),pos=wx.Point(16, 200), size=wx.Size(440, 384), CheckedList=Globals.TextCatCategoryList) self.treeCategoryCheckView.SetConstraints(LayoutAnchors(self.treeCategoryCheckView, True, True, True, True))
def _init_ctrls(self, prnt): wx.Frame.__init__(self, id=wxID_SECTIONS, name='sections', parent=prnt, pos=wx.Point(439, 269), size=wx.Size(548, 352), style=wx.FRAME_NO_TASKBAR | wx.FRAME_FLOAT_ON_PARENT | wx.DEFAULT_FRAME_STYLE, title='Sections Viewer') self.Centre() self._init_utils() self.SetClientSize(wx.Size(610, 160)) self.SetMinSize(wx.Size(500, 150)) self.sectionList = wx.ListCtrl(id=wxID_SECTIONLIST, name='dllList', parent=self, pos=wx.Point(0, 144), size=wx.Size(544, 152), style=wx.LC_SINGLE_SEL | wx.LC_REPORT) self.sectionList.SetConstraints( LayoutAnchors(self.sectionList, True, True, True, True)) self._init_coll_sectionList_Columns(self.sectionList) self.sectionList.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnSectionListItemSelected, id=wxID_SECTIONLIST) self.sectionList.Bind(wx.EVT_RIGHT_DOWN, self.OnSectionListRightDown) self.Bind(wx.EVT_CLOSE, self.OnClose) self._init_sizers()
def CreateFileProperties(self): self.panProperties = wx.Panel(id=wx.NewId(), name='panProperties', parent=self, pos=wx.Point(0,0), size=wx.Size(250, 424), style=wx.CLIP_CHILDREN | wx.TAB_TRAVERSAL) self.panProperties.SetAutoLayout(True) self.panProperties.SetBackgroundColour(wx.Colour(225, 236, 255)) self.lblFileName = wx.StaticText(id=wx.NewId(), label=u'File Name', name=u'lblFileName', parent=self.panProperties, pos=wx.Point(48, 32), size=wx.Size(46, 13), style=0) self.bitmapIcon = wx.StaticBitmap(bitmap=wx.NullBitmap, id=wx.NewId(), name=u'bitmapIcon', parent=self.panProperties, pos=wx.Point(8, 8), size=wx.Size(32, 32), style=0) self.staticText17 = wx.StaticText(id=wx.NewId(), label=u'File name:', name='staticText17', parent=self.panProperties, pos=wx.Point(48, 8), size=wx.Size(49, 13), style=0) self.listCtrlFileProperties = wx.ListCtrl(id=wx.NewId(), name='listCtrlFileProperties', parent=self.panProperties, pos=wx.Point(8, 56), size=wx.Size(234, 360), style=wx.VSCROLL | wx.LC_VRULES | wx.HSCROLL | wx.LC_HRULES | wx.LC_REPORT) self.listCtrlFileProperties.SetConstraints(LayoutAnchors(self.listCtrlFileProperties, True, True, True, True)) self.listCtrlFileProperties.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL, False, 'Tahoma')) self.listCtrlFileProperties.InsertColumn(col=0, format=wx.LIST_FORMAT_LEFT, heading='Property', width=75) self.listCtrlFileProperties.InsertColumn(col=1, format=wx.LIST_FORMAT_LEFT, heading='Value', width=150) return self.panProperties
def _init_ctrls(self, prnt): # generated method, don't edit wx.Panel.__init__(self, id=wxID_PYDOCHELPPAGE, name='PyDocHelpPage', parent=prnt, pos=wx.Point(443, 285), size=wx.Size(259, 456), style=wx.TAB_TRAVERSAL) self._init_utils() self.SetClientSize(wx.Size(251, 429)) self.SetAutoLayout(True) self.txtSearch = wx.TextCtrl(id=wxID_PYDOCHELPPAGETXTSEARCH, name='txtSearch', parent=self, pos=wx.Point(10, 10), size=wx.Size(231, 21), style=0, value='') self.txtSearch.SetConstraints( LayoutAnchors(self.txtSearch, True, True, True, False)) self.txtSearch.SetToolTipString(_('Enter name to search for')) self.txtSearch.Bind(wx.EVT_TEXT_ENTER, self.OnTxtsearchTextEnter, id=wxID_PYDOCHELPPAGETXTSEARCH) self.boxResults = wx.ListBox(choices=[], id=wxID_PYDOCHELPPAGEBOXRESULTS, name='boxResults', parent=self, pos=wx.Point(2, 89), size=wx.Size(247, 338), style=0) self.boxResults.SetConstraints( LayoutAnchors(self.boxResults, True, True, True, True)) self.boxResults.Bind(wx.EVT_LISTBOX, self.OnBoxresultsListboxDclick, id=wxID_PYDOCHELPPAGEBOXRESULTS) self.btnSearch = wx.Button(id=wxID_PYDOCHELPPAGEBTNSEARCH, label=_('Search'), name='btnSearch', parent=self, pos=wx.Point(89, 41), size=wx.Size(75, 23), style=0) self.btnSearch.SetConstraints( LayoutAnchors(self.btnSearch, False, True, True, False)) self.btnSearch.Bind(wx.EVT_BUTTON, self.OnBtnsearchButton, id=wxID_PYDOCHELPPAGEBTNSEARCH) self.btnStop = wx.Button(id=wxID_PYDOCHELPPAGEBTNSTOP, label=_('Stop'), name='btnStop', parent=self, pos=wx.Point(166, 41), size=wx.Size(75, 23), style=0) self.btnStop.SetConstraints( LayoutAnchors(self.btnStop, False, True, True, False)) self.btnStop.Enable(False) self.btnStop.Bind(wx.EVT_BUTTON, self.OnBtnstopButton, id=wxID_PYDOCHELPPAGEBTNSTOP) self.chkRunServer = wx.CheckBox(id=wxID_PYDOCHELPPAGECHKRUNSERVER, label=_('Server'), name='chkRunServer', parent=self, pos=wx.Point(3, 72), size=wx.Size(73, 13), style=0) self.chkRunServer.SetValue(self.runServer) self.chkRunServer.Bind(wx.EVT_CHECKBOX, self.OnChkrunserverCheckbox, id=wxID_PYDOCHELPPAGECHKRUNSERVER) self.pnlStatus = wx.Panel(id=wxID_PYDOCHELPPAGEPNLSTATUS, name='pnlStatus', parent=self, pos=wx.Point(80, 72), size=wx.Size(168, 16), style=wx.TAB_TRAVERSAL | wx.NO_BORDER) self.stxStatus = wx.StaticText(id=wxID_PYDOCHELPPAGESTXSTATUS, label=_('Server not running '), name='stxStatus', parent=self.pnlStatus, pos=wx.Point(0, 0), size=wx.Size(168, 16), style=wx.ST_NO_AUTORESIZE | wx.ALIGN_RIGHT) self.stxStatus.SetConstraints( LayoutAnchors(self.stxStatus, True, True, True, False)) self.stxStatus.Bind(wx.EVT_LEFT_DOWN, self.OnStxstatusLeftDown)
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)
def _init_ctrls(self, prnt): # generated method, don't edit wx.Dialog.__init__(self, id=wxID_WXBOAFILEDIALOG, name='wxBoaFileDialog', parent=prnt, pos=wx.Point(369, 279), size=wx.Size(408, 283), style=wx.RESIZE_BORDER | wx.DEFAULT_DIALOG_STYLE | wx.CLIP_CHILDREN, title=_('File Dialog')) self.SetAutoLayout(True) self.SetClientSize(wx.Size(400, 256)) self.SetSizeHints(250, 200, -1, -1) self.staticText1 = wx.StaticText(id=wxID_WXBOAFILEDIALOGSTATICTEXT1, label=_('File name:'), name='staticText1', parent=self, pos=wx.Point(8, 192), size=wx.Size(80, 16), style=0) self.staticText1.SetConstraints(LayoutAnchors(self.staticText1, True, False, False, True)) self.staticText2 = wx.StaticText(id=wxID_WXBOAFILEDIALOGSTATICTEXT2, label=_('Files of type:'), name='staticText2', parent=self, pos=wx.Point(8, 221), size=wx.Size(80, 16), style=0) self.staticText2.SetConstraints(LayoutAnchors(self.staticText2, True, False, False, True)) self.tcFilename = wx.TextCtrl(id=wxID_WXBOAFILEDIALOGTCFILENAME, name='tcFilename', parent=self, pos=wx.Point(96, 184), size=wx.Size(208, 24), style=wx.TE_PROCESS_ENTER, value='') self.tcFilename.SetConstraints(LayoutAnchors(self.tcFilename, True, False, True, True)) self.tcFilename.Bind(wx.EVT_TEXT_ENTER, self.OnTcfilenameTextEnter, id=wxID_WXBOAFILEDIALOGTCFILENAME) self.tcFilename.Bind(wx.EVT_KEY_DOWN, self.OnTcfilenameKeyDown) self.chTypes = wx.Choice(choices=self.filterOpts, id=wxID_WXBOAFILEDIALOGCHTYPES, name='chTypes', parent=self, pos=wx.Point(96, 216), size=wx.Size(208, 21), style=0) self.chTypes.SetConstraints(LayoutAnchors(self.chTypes, True, False, True, True)) self.chTypes.Bind(wx.EVT_CHOICE, self.OnChtypesChoice, id=wxID_WXBOAFILEDIALOGCHTYPES) self.btOK = wx.Button(id=wxID_WXBOAFILEDIALOGBTOK, label=_('OK'), name='btOK', parent=self, pos=wx.Point(320, 184), size=wx.Size(72, 24), style=0) self.btOK.SetConstraints(LayoutAnchors(self.btOK, False, False, True, True)) self.btOK.Bind(wx.EVT_BUTTON, self.OnBtokButton, id=wxID_WXBOAFILEDIALOGBTOK) self.btCancel = wx.Button(id=wxID_WXBOAFILEDIALOGBTCANCEL, label=_('Cancel'), name='btCancel', parent=self, pos=wx.Point(320, 216), size=wx.Size(72, 24), style=0) self.btCancel.SetConstraints(LayoutAnchors(self.btCancel, False, False, True, True)) self.btCancel.Bind(wx.EVT_BUTTON, self.OnBtcancelButton, id=wxID_WXBOAFILEDIALOGBTCANCEL) self.htmlWindow1 = wxUrlClickHtmlWindow(id=wxID_WXBOAFILEDIALOGHTMLWINDOW1, name='htmlWindow1', parent=self, pos=wx.Point(8, 0), size=wx.Size(392, 20), style=0) self.htmlWindow1.SetBackgroundColour(self.htmlBackCol) self.htmlWindow1.SetConstraints(LayoutAnchors(self.htmlWindow1, True, True, True, False))
def __init__(self, parent, message=_('Choose a file'), defaultDir='.', defaultFile='', wildcard='', style=wx.OPEN, pos=wx.DefaultPosition): self.htmlBackCol = wx.Colour(192, 192, 192) self.htmlBackCol = wx.SystemSettings.GetColour(wx.SYS_COLOUR_BTNFACE) self.filterOpts = [_('Boa files'), _('Internal files'), _('Image files'), _('All files')] self.filterOpts = [] self.filters = {} for flt in FileExplorer.filterDescrOrd: descr = FileExplorer.filterDescr[flt][0] self.filterOpts.append(descr) self.filters[descr] = flt self._htmlWinSize =wx.Size(392, 20) self._init_ctrls(parent) self.SetStyle(style) self.filterMap = FileExplorer.filterDescr self.textPath = ''#textPath self.Bind(wx.EVT_SIZE, self.OnSize) #self.btCancel.Bind(wx.EVT_KILL_FOCUS, self.OnBtcancelKillFocus) #self.Bind(wx.EVT_CLOSE, self.OnCloseWindow) if defaultDir == '.': if self.currentDir == '.': defaultDir = os.path.abspath(self.currentDir) else: defaultDir = self.currentDir pos, size = self.calcListDims() self.lcFiles = FileDlgFolderList(self, self, defaultDir, pos=pos, size=size) self.lcFiles.SetConstraints( LayoutAnchors(self.lcFiles, True, True, True, True)) NF = wx.NORMAL_FONT self.pathLabelFont = wx.Font(NF.GetPointSize(), NF.GetFamily(), NF.GetStyle(), NF.GetWeight(), NF.GetUnderlined(), NF.GetFaceName()) self.htmlWindow1.SetBorders(0) self.htmlWindow1.Bind(EVT_HTML_URL_CLICK, self.OnHtmlPathClick) self.lcFiles.Bind(wx.EVT_LEFT_DCLICK, self.OnOpen) self.btOK.SetDefault() self.SetDirectory(defaultDir) self.SetFilename(defaultFile) self.editorFilter = self.lcFiles.node.filter self.editorFilterNode = self.lcFiles.node if wildcard: self.SetWildcard(wildcard) else: self.chTypes.SetStringSelection(self.filterMap[self.lcFiles.node.filter][0]) self.tcFilename.SetFocus() wxID_CLOSEDLG = wx.NewId() self.Bind(wx.EVT_MENU, self.OnClose, id=wxID_CLOSEDLG) self.SetAcceleratorTable( wx.AcceleratorTable([(0, wx.WXK_ESCAPE, wxID_CLOSEDLG)])) self.winConfOption = 'filedialog' self.loadDims()
def _init_ctrls(self, prnt): # generated method, don't edit wx.Frame.__init__(self, id=wxID_FRMEMAILPREPROCESSING, name='frmEmailPreprocessing', parent=prnt, pos=wx.Point(352, -17), size=wx.Size(699, 804), style=wx.DEFAULT_FRAME_STYLE, title='Email Preprocessing') self.SetClientSize(wx.Size(691, 770)) self.SetWindowVariant(wx.WINDOW_VARIANT_MINI) self.SetCursor(wx.STANDARD_CURSOR) self.Center(wx.BOTH) self.SetBackgroundColour(wx.Colour(125, 152, 221)) self.SetAutoLayout(True) self.panEmailPreProcessing = wx.Panel( id=wxID_FRMEMAILPREPROCESSINGPANEMAILPREPROCESSING, name='panEmailPreProcessing', parent=self, pos=wx.Point(16, 16), size=wx.Size(656, 700), style=wx.TAB_TRAVERSAL) self.panEmailPreProcessing.SetBackgroundColour(wx.Colour( 225, 236, 255)) self.panEmailPreProcessing.SetAutoLayout(False) self.panEmailPreProcessing.SetConstraints( LayoutAnchors(self.panEmailPreProcessing, True, True, True, True)) self.panEmailPreProcessing.SetFont( wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL, False, u'Tahoma')) self.btnClose = wx.Button(id=wxID_FRMEMAILPREPROCESSINGBTNCLOSE, label='&Cancel', name='btnClose', parent=self, pos=wx.Point(449, 730), size=wx.Size(96, 23), style=0) self.btnClose.SetFont( wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, 'Arial')) self.btnClose.SetConstraints( LayoutAnchors(self.btnClose, False, False, True, True)) self.btnClose.Bind(wx.EVT_BUTTON, self.OnBtnCloseButton, id=wxID_FRMEMAILPREPROCESSINGBTNCLOSE) self.btnSave = wx.Button(id=wxID_FRMEMAILPREPROCESSINGBTNSAVE, label='&Save And Close', name='btnSave', parent=self, pos=wx.Point(557, 732), size=wx.Size(120, 23), style=0) self.btnSave.SetFont( wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL, False, 'Arial')) self.btnSave.SetConstraints( LayoutAnchors(self.btnSave, False, False, True, True)) self.btnSave.Bind(wx.EVT_BUTTON, self.OnBtnSaveButton, id=wxID_FRMEMAILPREPROCESSINGBTNSAVE) self.staticText1 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT1, label='Address Book Path:', name='staticText1', parent=self.panEmailPreProcessing, pos=wx.Point(48, 56), size=wx.Size(94, 13), style=0) self.staticText4 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT4, label='Preprocess Emails and Attachments:', name='staticText4', parent=self.panEmailPreProcessing, pos=wx.Point(16, 16), size=wx.Size(297, 19), style=0) self.staticText4.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.staticText5 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT5, label=u'Select File Types To Index:', name='staticText5', parent=self.panEmailPreProcessing, pos=wx.Point(48, 200), size=wx.Size(80, 48), style=0) self.staticText6 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT6, label=u'1.', name='staticText6', parent=self.panEmailPreProcessing, pos=wx.Point(16, 52), size=wx.Size(15, 19), style=0) self.staticText6.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.staticText9 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT9, label='5.', name='staticText9', parent=self.panEmailPreProcessing, pos=wx.Point(16, 588), size=wx.Size(15, 19), style=0) self.staticText9.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.btnBrowseAddressBook = wx.Button( id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEADDRESSBOOK, label='...', name='btnBrowseAddressBook', parent=self.panEmailPreProcessing, pos=wx.Point(600, 48), size=wx.Size(43, 23), style=0) self.btnBrowseAddressBook.Bind( wx.EVT_BUTTON, self.OnBtnBrowseAddressBookButton, id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEADDRESSBOOK) self.staticText2 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT2, label='4.', name='staticText2', parent=self.panEmailPreProcessing, pos=wx.Point(16, 196), size=wx.Size(15, 19), style=0) self.staticText2.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.btnBrowseEmailPath = wx.Button( id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEEMAILPATH, label='...', name='btnBrowseEmailPath', parent=self.panEmailPreProcessing, pos=wx.Point(600, 80), size=wx.Size(43, 23), style=0) self.btnBrowseEmailPath.Bind( wx.EVT_BUTTON, self.OnBtnBrowseEmailPathButton, id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEEMAILPATH) self.staticText7 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT7, label='6.', name='staticText7', parent=self.panEmailPreProcessing, pos=wx.Point(16, 620), size=wx.Size(15, 19), style=0) self.staticText7.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.staticText3 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT3, label='Messages Path:', name='staticText3', parent=self.panEmailPreProcessing, pos=wx.Point(48, 88), size=wx.Size(76, 13), style=0) self.btnBrowseAttachmentsPath = wx.Button( id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEATTACHMENTSPATH, label='...', name='btnBrowseAttachmentsPath', parent=self.panEmailPreProcessing, pos=wx.Point(600, 136), size=wx.Size(43, 23), style=0) self.btnBrowseAttachmentsPath.Bind( wx.EVT_BUTTON, self.OnBtnBrowseAttachmentsPathButton, id=wxID_FRMEMAILPREPROCESSINGBTNBROWSEATTACHMENTSPATH) self.staticText8 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT8, label='7.', name='staticText8', parent=self.panEmailPreProcessing, pos=wx.Point(16, 660), size=wx.Size(15, 19), style=0) self.staticText8.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.staticText11 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT11, label='3.', name='staticText11', parent=self.panEmailPreProcessing, pos=wx.Point(16, 140), size=wx.Size(15, 19), style=0) self.staticText11.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.staticText10 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT10, label='Attachments Path:', name='staticText10', parent=self.panEmailPreProcessing, pos=wx.Point(48, 144), size=wx.Size(90, 13), style=0) self.staticText12 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT12, label='Get Stopwords List:', name='staticText12', parent=self.panEmailPreProcessing, pos=wx.Point(40, 592), size=wx.Size(94, 13), style=0) self.staticText13 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT13, label=u'2.', name='staticText13', parent=self.panEmailPreProcessing, pos=wx.Point(16, 84), size=wx.Size(15, 19), style=0) self.staticText13.SetFont( wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.txtAddressBookPath = wx.TextCtrl( id=wxID_FRMEMAILPREPROCESSINGTXTADDRESSBOOKPATH, name='txtAddressBookPath', parent=self.panEmailPreProcessing, pos=wx.Point(152, 48), size=wx.Size(432, 21), style=0, value='') self.txtEmailsPath = wx.TextCtrl( id=wxID_FRMEMAILPREPROCESSINGTXTEMAILSPATH, name='txtEmailsPath', parent=self.panEmailPreProcessing, pos=wx.Point(152, 80), size=wx.Size(432, 21), style=0, value='') self.txtAttachmentsPath = wx.TextCtrl( id=wxID_FRMEMAILPREPROCESSINGTXTATTACHMENTSPATH, name='txtAttachmentsPath', parent=self.panEmailPreProcessing, pos=wx.Point(152, 136), size=wx.Size(432, 21), style=0, value='') self.btnStopwords = wx.Button( id=wxID_FRMEMAILPREPROCESSINGBTNSTOPWORDS, label='Stopwords List...', name='btnStopwords', parent=self.panEmailPreProcessing, pos=wx.Point(152, 584), size=wx.Size(208, 23), style=0) self.btnStopwords.Bind(wx.EVT_BUTTON, self.OnBtnStopwordsButton, id=wxID_FRMEMAILPREPROCESSINGBTNSTOPWORDS) self.choiceStemmers = wx.Choice( choices=[u'None - Do not Stem Words', u'Porter Stemmer'], id=wxID_FRMEMAILPREPROCESSINGCHOICESTEMMERS, name=u'choiceStemmers', parent=self.panEmailPreProcessing, pos=wx.Point(152, 616), size=wx.Size(208, 21), style=0) self.choiceStemmers.SetStringSelection(u'None') self.choiceStemmers.SetHelpText(u'') self.choiceStemmers.SetSelection(0) self.choiceStemmers.SetLabel('') self.btnStartScan = wx.Button( id=wxID_FRMEMAILPREPROCESSINGBTNSTARTSCAN, label='Start Preprocessing', name='btnStartScan', parent=self.panEmailPreProcessing, pos=wx.Point(152, 656), size=wx.Size(208, 23), style=0) self.btnStartScan.Bind(wx.EVT_BUTTON, self.OnBtnStartScanButton, id=wxID_FRMEMAILPREPROCESSINGBTNSTARTSCAN) self.staticText14 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT14, label=u'Finally:', name='staticText14', parent=self.panEmailPreProcessing, pos=wx.Point(40, 664), size=wx.Size(34, 13), style=0) self.staticText15 = wx.StaticText( id=wxID_FRMEMAILPREPROCESSINGSTATICTEXT15, label=u'Select a Stemmer:', name='staticText15', parent=self.panEmailPreProcessing, pos=wx.Point(40, 624), size=wx.Size(87, 13), style=0) self.chkIndexMessages = wx.CheckBox( id=wxID_FRMEMAILPREPROCESSINGCHKINDEXMESSAGES, label=u'Index Messages for quick searching', name=u'chkIndexMessages', parent=self.panEmailPreProcessing, pos=wx.Point(152, 112), size=wx.Size(216, 13), style=0) self.chkIndexMessages.SetValue(True) self.chkIndexMessages.Bind( wx.EVT_CHECKBOX, self.OnChkIndexMessagesCheckbox, id=wxID_FRMEMAILPREPROCESSINGCHKINDEXMESSAGES) self.chkIndexAttachments = wx.CheckBox( id=wxID_FRMEMAILPREPROCESSINGCHKINDEXATTACHMENTS, label=u'Index Attachments for quick searching', name=u'chkIndexAttachments', parent=self.panEmailPreProcessing, pos=wx.Point(152, 168), size=wx.Size(216, 13), style=0) self.chkIndexAttachments.SetValue(True) self.chkIndexAttachments.Bind( wx.EVT_CHECKBOX, self.OnChkIndexAttachmentsCheckbox, id=wxID_FRMEMAILPREPROCESSINGCHKINDEXATTACHMENTS)
def _init_ctrls(self, prnt): # generated method, don't edit wx.MDIChildFrame.__init__(self, id=wxID_MDICHILDKEYWORDS, name=u'MDIChildKeywords', parent=prnt, pos=wx.Point(132, 97), size=wx.Size(1048, 714), style=wx.DEFAULT_FRAME_STYLE, title=u'Keywords Search') self.SetClientSize(wx.Size(1040, 680)) self.SetBackgroundColour(wx.Colour(125, 152, 221)) self.SetAutoLayout(True) self.panKeywords = wx.Panel(id=wxID_MDICHILDKEYWORDSPANKEYWORDS, name=u'panKeywords', parent=self, pos=wx.Point(4, 4), size=wx.Size(1032, 672), style=wx.TAB_TRAVERSAL) self.panKeywords.SetBackgroundColour(wx.Colour(225, 236, 255)) self.panKeywords.SetConstraints(LayoutAnchors(self.panKeywords, True, True, True, True)) self.btnClose = wx.Button(id=wxID_MDICHILDKEYWORDSBTNCLOSE, label=u'Close', name=u'btnClose', parent=self.panKeywords, pos=wx.Point(950, 8), size=wx.Size(75, 23), style=0) self.btnClose.SetConstraints(LayoutAnchors(self.btnClose, False, True, True, False)) self.btnClose.Bind(wx.EVT_BUTTON, self.OnBtnCloseButton, id=wxID_MDICHILDKEYWORDSBTNCLOSE) self.btnCustomizeSearch = wx.Button(id=wxID_MDICHILDKEYWORDSBTNCUSTOMIZESEARCH, label='Customize And Search...', name=u'btnCustomizeSearch', parent=self.panKeywords, pos=wx.Point(176, 8), size=wx.Size(144, 23), style=0) self.btnCustomizeSearch.Bind(wx.EVT_BUTTON, self.OnBtnCustomizeSearchButton, id=wxID_MDICHILDKEYWORDSBTNCUSTOMIZESEARCH) self.lblSearchResults = wx.StaticText(id=wxID_MDICHILDKEYWORDSLBLSEARCHRESULTS, label='Searh Results:', name=u'lblSearchResults', parent=self.panKeywords, pos=wx.Point(8, 112), size=wx.Size(95, 16), style=0) self.lblSearchResults.SetForegroundColour(wx.Colour(0, 0, 187)) self.lblSearchResults.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD, False, u'Tahoma')) self.lblSearchResults.SetConstraints(LayoutAnchors(self.lblSearchResults, True, True, False, False)) self.btnExportSearchResults = wx.Button(id=wxID_MDICHILDKEYWORDSBTNEXPORTSEARCHRESULTS, label='Export Search Results', name='btnExportSearchResults', parent=self.panKeywords, pos=wx.Point(888, 96), size=wx.Size(136, 23), style=0) self.btnExportSearchResults.SetConstraints(LayoutAnchors(self.btnExportSearchResults, False, True, True, False)) self.btnExportSearchResults.Bind(wx.EVT_BUTTON, self.OnBtnExportSearchResultsButton, id=wxID_MDICHILDKEYWORDSBTNEXPORTSEARCHRESULTS) self.btnSearchDocuments = wx.Button(id=wxID_MDICHILDKEYWORDSBTNSEARCHDOCUMENTS, label='Search', name='btnSearchDocuments', parent=self.panKeywords, pos=wx.Point(592, 64), size=wx.Size(59, 23), style=0) self.btnSearchDocuments.Bind(wx.EVT_BUTTON, self.OnBtnSearchDocumentsButton, id=wxID_MDICHILDKEYWORDSBTNSEARCHDOCUMENTS) self.staticBox5 = wx.StaticBox(id=wxID_MDICHILDKEYWORDSSTATICBOX5, label='Search Documents Based on Keywords', name='staticBox5', parent=self.panKeywords, pos=wx.Point(8, 40), size=wx.Size(656, 56), style=0) self.btnBatchSearch = wx.Button(id=wxID_MDICHILDKEYWORDSBTNBATCHSEARCH, label='Keywords Batch Search...', name='btnBatchSearch', parent=self.panKeywords, pos=wx.Point(16, 8), size=wx.Size(144, 23), style=0) self.btnBatchSearch.Bind(wx.EVT_BUTTON, self.OnBtnBatchSearchButton, id=wxID_MDICHILDKEYWORDSBTNBATCHSEARCH)