Exemplo n.º 1
0
 def __init__(self, prnt, main_window, name=u'opButtonsPanel'):
     global main
     main = main_window
     self.parent = prnt
     self.parser = opParser.Parser(main)
     self.__init_ctrls(prnt, name)
     # adjust button sizes
     utils.adjust_exact_buttons(self)
     self.__init_sizer()
Exemplo n.º 2
0
 def __init__(self, prnt, main_window, name=u'opButtonsPanel'):
     global main
     main = main_window
     self.parent = prnt
     self.parser = opParser.Parser(main)
     self.__init_ctrls(prnt, name)
     # adjust button sizes
     utils.adjust_exact_buttons(self)
     self.__init_sizer()
Exemplo n.º 3
0
    def __init__(self, Core, parent, main_window):
        global main
        main = main_window

        self.__init_ctrls(parent)
        # adjust button sizes
        utils.adjust_exact_buttons(self)
        self.__init_sizer()

        # to store for removal
        self.errors = []
        self.warnings = []
Exemplo n.º 4
0
    def __init__(self, Core, parent, main_window):
        global main
        main = main_window

        self.__init_ctrls(parent)
        # adjust button sizes
        utils.adjust_exact_buttons(self)
        self.__init_sizer()

        # to store for removal
        self.errors = []
        self.warnings = []
Exemplo n.º 5
0
    def __init_sizer(self):
        # adjust button sizes
        utils.adjust_exact_buttons(self)

        PathSizer = self.PathSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
        SelectSizer = self.SelectSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
        mainSizer = self.mainSizer = wx.BoxSizer(orient=wx.VERTICAL)

        PathSizer.AddWindow(self.browse, 0, wx.ALL, 5, wx.ALIGN_CENTER)
        PathSizer.AddWindow(self.path, 1, wx.ALIGN_CENTER | wx.RIGHT, 5)
        PathSizer.AddWindow(self.walkIt, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)
        PathSizer.AddWindow(self.staticText2, 0, wx.ALIGN_CENTER | wx.RIGHT, 3)
        PathSizer.AddWindow(self.walkDepth, 0, wx.ALIGN_CENTER | wx.RIGHT, 15)
        PathSizer.AddWindow(self.ok, 0, wx.RIGHT | wx.ALIGN_CENTER, 8)

        SelectSizer.AddWindow(self.notType, 0, wx.ALIGN_CENTER)
        SelectSizer.AddWindow(self.staticText1, 0, wx.ALIGN_CENTER | wx.LEFT,
                              3)
        SelectSizer.AddWindow(self.FilterSel, 20, wx.ALIGN_CENTER)
        SelectSizer.AddWindow(self.filterByRE, 0, wx.ALIGN_CENTER | wx.LEFT, 5)
        SelectSizer.AddWindow(self.ignoreCase, 0, wx.ALIGN_CENTER | wx.LEFT, 2)
        SelectSizer.AddWindow(self.useLocale, 0, wx.ALIGN_CENTER | wx.LEFT, 2)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.divider1, 0, wx.ALIGN_CENTER)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.select, 0, wx.RIGHT | wx.ALIGN_CENTER, 5)
        SelectSizer.AddWindow(self.foldersOn, 0, wx.ALIGN_CENTER | wx.RIGHT, 7)
        SelectSizer.AddWindow(self.filesOn, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.selectAll, 0, wx.RIGHT, 2)
        SelectSizer.AddWindow(self.selectNone, 0)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)

        mainSizer.AddWindow(self.pathHelp, 0, wx.EXPAND | wx.LEFT | wx.TOP, 6)
        mainSizer.AddSizer(PathSizer, 0, wx.EXPAND | wx.ALIGN_CENTER)
        mainSizer.AddSizer(SelectSizer, 0, wx.LEFT | wx.EXPAND, 6)
        mainSizer.AddWindow(self.selectionArea, 1, wx.EXPAND | wx.TOP, 3)

        self.SetSizerAndFit(mainSizer)
Exemplo n.º 6
0
    def __init_sizer(self):
        # adjust button sizes
        utils.adjust_exact_buttons(self)

        PathSizer = self.PathSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
        SelectSizer = self.SelectSizer = wx.BoxSizer(orient=wx.HORIZONTAL)
        mainSizer = self.mainSizer = wx.BoxSizer(orient=wx.VERTICAL)

        PathSizer.AddWindow(self.browse, 0, wx.ALL, 5, wx.ALIGN_CENTER)
        PathSizer.AddWindow(self.path, 1, wx.ALIGN_CENTER | wx.RIGHT, 5)
        PathSizer.AddWindow(self.walkIt, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)
        PathSizer.AddWindow(self.staticText2, 0, wx.ALIGN_CENTER | wx.RIGHT, 3)
        PathSizer.AddWindow(self.walkDepth, 0, wx.ALIGN_CENTER | wx.RIGHT, 15)
        PathSizer.AddWindow(self.ok, 0, wx.RIGHT | wx.ALIGN_CENTER, 8)

        SelectSizer.AddWindow(self.notType, 0, wx.ALIGN_CENTER)
        SelectSizer.AddWindow(self.staticText1, 0, wx.ALIGN_CENTER | wx.LEFT, 3)
        SelectSizer.AddWindow(self.FilterSel, 20, wx.ALIGN_CENTER)
        SelectSizer.AddWindow(self.filterByRE, 0, wx.ALIGN_CENTER | wx.LEFT, 5)
        SelectSizer.AddWindow(self.ignoreCase, 0, wx.ALIGN_CENTER | wx.LEFT, 2)
        SelectSizer.AddWindow(self.useLocale, 0, wx.ALIGN_CENTER | wx.LEFT, 2)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.divider1, 0, wx.ALIGN_CENTER)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.select, 0, wx.RIGHT | wx.ALIGN_CENTER, 5)
        SelectSizer.AddWindow(self.foldersOn, 0, wx.ALIGN_CENTER | wx.RIGHT, 7)
        SelectSizer.AddWindow(self.filesOn, 0, wx.ALIGN_CENTER | wx.RIGHT, 5)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)
        SelectSizer.AddWindow(self.selectAll, 0, wx.RIGHT, 2)
        SelectSizer.AddWindow(self.selectNone, 0)
        SelectSizer.AddSpacer((-1, -1), 1, wx.EXPAND)

        mainSizer.AddWindow(self.pathHelp, 0, wx.EXPAND | wx.LEFT | wx.TOP, 6)
        mainSizer.AddSizer(PathSizer, 0, wx.EXPAND | wx.ALIGN_CENTER)
        mainSizer.AddSizer(SelectSizer, 0, wx.LEFT | wx.EXPAND, 6)
        mainSizer.AddWindow(self.selectionArea, 1, wx.EXPAND | wx.TOP, 3)

        self.SetSizerAndFit(mainSizer)