Пример #1
0
    def __init__(self, parent):
        super(busyToAppPanel, self).__init__(parent)
        self.SetupScrolling()

        self.selectBusyList = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Busy Items Files', 0, 0)
        self.selectAppList = createSelectFilePanel.createSelectFilePanel(
            self, 'Select App Items Files', 0, 100)
        self.selectAppSample = createSelectFilePanel.createSelectFilePanel(
            self, 'Select App Sample Files', 0, 200)
        self.selectKeywords = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Keywords Files', 0, 300)

        self.btnCheckCategories = wx.Button(self,
                                            label='Check Categories',
                                            pos=(10, 400))
        self.btnCheckCategories.Bind(wx.EVT_BUTTON, self.on_check_categories)

        self.btnUpdateAppFiles = wx.Button(self,
                                           label='Update App Files',
                                           pos=(200, 400))
        self.btnUpdateAppFiles.Bind(wx.EVT_BUTTON, self.on_update_app)
        self.btnUpdateAppFiles.Disable()

        self.textLog = wx.TextCtrl(self,
                                   pos=(10, 450),
                                   size=(800, 200),
                                   style=wx.TE_MULTILINE)
        self.busyData = []
Пример #2
0
    def __init__(self, parent):
        super(diffKeywordsPanel, self).__init__(parent)
        self.SetupScrolling()

        self.selectKeywordsFileNew = createSelectFilePanel.createSelectFilePanel(
            self, 'Select New Keywords Files', 0, 0)
        self.selectKeywordsFileOld = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Old Keywords Files', 0, 100)

        self.btnRun = wx.Button(self, label='Run', pos=(10, 200))
        self.btnRun.Bind(wx.EVT_BUTTON, self.on_run)

        self.btnStart = wx.Button(self, label='Start/Next', pos=(100, 200))
        self.btnStart.Bind(wx.EVT_BUTTON, self.on_start)

        wx.StaticText(self, label="Old Keyword", pos=(10, 265))
        wx.StaticText(self, label="New Keyword", pos=(10, 515))

        self.textOldKeyword = wx.TextCtrl(self,
                                          pos=(150, 250),
                                          size=(800, 200),
                                          style=wx.TE_MULTILINE)
        self.textNewKeyword = wx.TextCtrl(self, pos=(150, 500), size=(800, 45))

        self.btnUpdate = wx.Button(self, label='Update', pos=(10, 550))
        self.btnUpdate.Bind(wx.EVT_BUTTON, self.on_update)

        self.btnSave = wx.Button(self, label='Save', pos=(100, 550))
        self.btnSave.Bind(wx.EVT_BUTTON, self.on_save)

        self.keywordsObj = diffKeywords.diffKeywords()
        self.wordIndex = 0

        self.disableUpdate()
Пример #3
0
    def __init__(self, parent):
        super(tagKeywordsPanel, self).__init__(parent)
        self.SetupScrolling()

        self.selectKeywordsFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Keywords Files', 0, 0)
        self.selectBusyItemsFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Busy Items File', 0, 100)

        self.btnRun = wx.Button(self, label='Run', pos=(10, 200))
        self.btnRun.Bind(wx.EVT_BUTTON, self.on_run)

        self.btnStart = wx.Button(self, label='Start/Next', pos=(100, 200))
        self.btnStart.Bind(wx.EVT_BUTTON, self.on_start)

        wx.StaticText(self, label="Total", pos=(200, 200))
        wx.StaticText(self, label="Done", pos=(400, 200))
        self.totalLabel = wx.StaticText(self, label="", pos=(300, 200))
        self.doneLabel = wx.StaticText(self, label="", pos=(500, 200))

        wx.StaticText(self, label="Busy Keyword", pos=(10, 265))
        wx.StaticText(self, label="Found in \nHelmet Names", pos=(10, 315))

        self.textNewKeywordShort = wx.TextCtrl(self,
                                               pos=(150, 250),
                                               size=(800, 45))
        self.textSearchNames = wx.TextCtrl(self,
                                           pos=(150, 300),
                                           size=(800, 195),
                                           style=wx.TE_MULTILINE)
        self.cb1 = wx.CheckBox(self, label='Brand', pos=(10, 510))
        self.cb2 = wx.CheckBox(self, label='Style', pos=(100, 510))
        self.cb3 = wx.CheckBox(self, label='Colour', pos=(200, 510))
        self.cb4 = wx.CheckBox(self, label='Size', pos=(300, 510))
        self.cb5 = wx.CheckBox(self, label='Type', pos=(400, 510))

        self.cbs = [self.cb1, self.cb2, self.cb3, self.cb4, self.cb5]

        self.btnUpdate = wx.Button(self, label='Update', pos=(10, 550))
        self.btnUpdate.Bind(wx.EVT_BUTTON, self.on_update)

        self.btnSkip = wx.Button(self, label='Skip', pos=(100, 550))
        self.btnSkip.Bind(wx.EVT_BUTTON, self.on_skip)

        self.btnSave = wx.Button(self, label='Save', pos=(200, 550))
        self.btnSave.Bind(wx.EVT_BUTTON, self.on_save)

        self.btnConvert = wx.Button(self, label='Convert', pos=(300, 550))
        self.btnConvert.Bind(wx.EVT_BUTTON, self.on_btnConvert)

        self.keywordsObj = tagKeywords.tagKeywords()
        self.wordIndex = 0

        self.disableUpdate()
Пример #4
0
    def __init__(self, parent):
        super(mergeDatabasePanel, self).__init__(parent)
        self.SetupScrolling()

        self.busyFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Busywin Database', 0, 0)
        self.FullDatabaseFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Final Database', 0, 100)

        self.btnRun = wx.Button(self, label='Run', pos=(10, 200))
        self.btnRun.Bind(wx.EVT_BUTTON, self.on_run)
Пример #5
0
    def __init__(self, parent):
        super(updateFSNPanel, self).__init__(parent)
        self.SetupScrolling()

        self.selectDatabaseFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select Database', 0, 0)
        self.selectFSNNewFile = createSelectFilePanel.createSelectFilePanel(
            self, 'Select New FSN File', 0, 100)

        self.btnRun = wx.Button(self, label='Run', pos=(10, 200))
        self.btnRun.Bind(wx.EVT_BUTTON, self.on_run)

        self.btnStart = wx.Button(self, label='Start/Next', pos=(100, 200))
        self.btnStart.Bind(wx.EVT_BUTTON, self.on_start)

        wx.StaticText(self, label="Total", pos=(200, 200))
        wx.StaticText(self, label="Done", pos=(400, 200))
        self.totalLabel = wx.StaticText(self, label="", pos=(300, 200))
        self.doneLabel = wx.StaticText(self, label="", pos=(500, 200))

        wx.StaticText(self, label="FSN", pos=(10, 265))
        wx.StaticText(self, label="FSN Details", pos=(10, 300))

        self.textNewFSN = wx.TextCtrl(self, pos=(150, 250), size=(800, 45))
        self.textFSNDetails = wx.TextCtrl(self,
                                          pos=(150, 300),
                                          size=(800, 195),
                                          style=wx.TE_MULTILINE)

        font1 = wx.Font(12, wx.MODERN, wx.NORMAL, wx.NORMAL, False,
                        u'Consolas')
        self.textNewFSN.SetFont(font1)
        self.textFSNDetails.SetFont(font1)

        self.globalSearchItems = addGlobalSearchPanelTextBox.addGlobalSearchPanelTextBox(
            self, x=10, y=500)
        self.cbNone = wx.CheckBox(self,
                                  label='None',
                                  pos=(800, self.globalSearchItems.endY - 50))
        self.btnUpdate = wx.Button(self,
                                   label='Update',
                                   pos=(10, self.globalSearchItems.endY))
        self.btnUpdate.Bind(wx.EVT_BUTTON, self.on_update)

        self.btnSave = wx.Button(self,
                                 label='Save',
                                 pos=(100, self.globalSearchItems.endY))
        self.btnSave.Bind(wx.EVT_BUTTON, self.on_save)

        self.updateFSNObj = updateFSN.updateFSN()
        self.wordIndex = 0

        self.disableUpdate()