Ejemplo n.º 1
0
    def rsizerCreate(self):
        '''
        ###################################
        # rSizer Description Text
        #
        ## globals itemInfo, itemNumber
        ####################################
        '''
        self.logger.log_info(self.rsizerCreate.__name__,"THIS IS A MESSAGE in rsizerCreate")
        self.descriptionTextField = wx.TextCtrl(self.mainPanel, size=(300, 500),
                                         style=wx.TE_MULTILINE | wx.TE_RICH2)

        results = Check(self)
        description = results.description()
        self.descriptionTextField.AppendText(description)
        
        
        ####work in progress####
        self.descriptionTextField.Bind(wx.EVT_TEXT, self.eventsHandler.onDescriptionTextField)

        
        
        self.rSizer = wx.BoxSizer(wx.HORIZONTAL)
        self.rSizer.Add(self.descriptionTextField, 0, wx.ALL, 5)
        # Create Lbls/Text
        self.saveDescriptionTextBtn = wx.Button(self.mainPanel, label='Save Current')
        self.saveDescriptionTextBtn.Bind(wx.EVT_BUTTON,
                                self.eventsHandler.onSaveCurrentTextBtn)
        # self.currentBoxLbl = wx.StaticText(self.mainPanel, label='Current Box')
        # self.currentBoxText = wx.TextCtrl(self.mainPanel, size=(40,-1))
        # self.currentConditionLbl = wx.StaticText(self.mainPanel, label='Condition 1-5')
        self.currentConditionText = wx.TextCtrl(self.mainPanel, size=(40,-1))
        self.currentConditionText.Bind(wx.EVT_TEXT, self.eventsHandler.onCurrentConditionText)
        self.currentConditionNotesLbl = wx.StaticText(self.mainPanel, label='Condition Notes')
        self.currentConditionNotesText = wx.TextCtrl(self.mainPanel, size=(120,40), style=wx.TE_MULTILINE)
        self.currentDateListedLbl = wx.StaticText(self.mainPanel, label='Date Listed')
        self.currentDateListedText = wx.TextCtrl(self.mainPanel, size=(60,-1))
        self.currentDateListedText.Bind(wx.EVT_TEXT, self.eventsHandler.onDateListedText)

        self.currentTitleLbl = wx.StaticText(self.mainPanel, label='Title')
        self.currentTitleText = wx.TextCtrl(self.mainPanel, size=(300,60), style=wx.TE_MULTILINE)
        self.currentTitleText.Bind(wx.EVT_TEXT, self.eventsHandler.onCurrentTitleText)
        # Create rSizerCurrentItemSizer add lbl/text
        self.rSizerCurrentItemSizer = wx.BoxSizer(wx.VERTICAL)
        self.rSizerCurrentItemSizer.Add(self.saveDescriptionTextBtn, 0, wx.ALL, 5)
        # self.rSizerCurrentItemSizer.Add(self.currentBoxLbl, 0, wx.ALL, 5)
        # self.rSizerCurrentItemSizer.Add(self.currentBoxText, 0, wx.ALL, 5)
        # self.rSizerCurrentItemSizer.Add(self.currentConditionLbl, 0, wx.ALL, 5)
        # self.rSizerCurrentItemSizer.Add(self.currentConditionText, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionNotesLbl, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionNotesText, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentDateListedLbl, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentDateListedText, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentTitleLbl, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentTitleText, 0, wx.ALL, 5)
        self.rSizer.Add(self.rSizerCurrentItemSizer)
        self.rSizer.Hide(self.rSizerCurrentItemSizer,recursive=True)

        return
Ejemplo n.º 2
0
    def rsizerCreate(self):
        '''
        ###################################
        # rSizer Description Text
        #
        ## globals itemInfo, itemNumber
        ####################################
        '''
        self.logger.log_info(self.rsizerCreate.__name__,
                             "THIS IS A MESSAGE in rsizerCreate")
        self.descriptionTextField = wx.TextCtrl(self.mainPanel,
                                                size=(300, 500),
                                                style=wx.TE_MULTILINE
                                                | wx.TE_RICH2)

        results = Check(self)
        description = results.description()
        self.descriptionTextField.AppendText(description)

        self.descriptionTextField.Bind(
            wx.EVT_TEXT, self.eventsHandler.onDescriptionTextField)

        self.rSizer = wx.BoxSizer(wx.HORIZONTAL)
        self.rSizer.Add(self.descriptionTextField, 0, wx.ALL, 5)
        self.currentTitleLbl = wx.StaticText(self.mainPanel, label='Title')
        self.currentTitleText = wx.TextCtrl(self.mainPanel,
                                            size=(300, 60),
                                            style=wx.TE_MULTILINE)
        self.currentTitleText.Bind(wx.EVT_TEXT,
                                   self.eventsHandler.onCurrentTitleText)

        # self.currentBoxLbl = wx.StaticText(self.mainPanel, label='Current Box')
        # self.currentBoxText = wx.TextCtrl(self.mainPanel, size=(40,-1))
        self.currentConditionLbl = wx.StaticText(self.mainPanel,
                                                 label='Condition 1-5')
        self.currentConditionText = wx.TextCtrl(self.mainPanel, size=(40, -1))
        self.currentConditionText.Bind(
            wx.EVT_TEXT, self.eventsHandler.onCurrentConditionText)
        # Issue #19
        self.currentAuctionIncludesLbl = wx.StaticText(
            self.mainPanel, label='Auction Includes')
        self.currentAuctionIncludesText = wx.TextCtrl(self.mainPanel,
                                                      size=(120, 40),
                                                      style=wx.TE_MULTILINE)
        self.currentAuctionIncludesText.Bind(
            wx.EVT_TEXT, self.eventsHandler.onCurrentAuctionIncludesText)
        self.currentConditionNotesLbl = wx.StaticText(self.mainPanel,
                                                      label='Condition Notes')
        self.currentConditionNotesText = wx.TextCtrl(self.mainPanel,
                                                     size=(120, 40),
                                                     style=wx.TE_MULTILINE)
        self.currentConditionNotesText.Bind(
            wx.EVT_TEXT, self.eventsHandler.onCurrentConditionNotesText)
        self.currentDateListedLbl = wx.StaticText(self.mainPanel,
                                                  label='Date Listed')
        self.currentDateListedText = wx.TextCtrl(self.mainPanel, size=(60, -1))
        self.currentDateListedText.Bind(wx.EVT_TEXT,
                                        self.eventsHandler.onDateListedText)
        # Create Lbls/Text
        self.saveDescriptionTextBtn = wx.Button(self.mainPanel,
                                                label='Save Current')
        self.saveDescriptionTextBtn.Bind(
            wx.EVT_BUTTON, self.eventsHandler.onSaveCurrentTextBtn)

        # Create rSizerCurrentItemSizer add lbl/text
        self.rSizerCurrentItemSizer = wx.BoxSizer(wx.VERTICAL)
        self.rSizerCurrentItemSizer.Add(self.currentTitleLbl, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentTitleText, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentAuctionIncludesLbl, 0,
                                        wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentAuctionIncludesText, 0,
                                        wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionLbl, 0, wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionText, 0, wx.ALL,
                                        5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionNotesLbl, 0,
                                        wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentConditionNotesText, 0,
                                        wx.ALL, 5)
        self.rSizerCurrentItemSizer.Add(self.currentDateListedLbl, 0, wx.ALL,
                                        5)
        self.rSizerCurrentItemSizer.Add(self.currentDateListedText, 0, wx.ALL,
                                        5)
        self.rSizerCurrentItemSizer.Add(self.saveDescriptionTextBtn, 0, wx.ALL,
                                        5)
        self.rSizer.Add(self.rSizerCurrentItemSizer)
        self.rSizer.Hide(self.rSizerCurrentItemSizer, recursive=True)

        return