Exemple #1
0
    def _createNonHeaderWidgets(self):
        self.progressCtrl = ZProgressLabelCtrl(self, u"")  #$NON-NLS-1$
        self.progressGauge = wx.Gauge(self, wx.ID_ANY,
                                      self.bgTask.getNumWorkUnits())
        self.progressGauge.SetSizeHints(-1, 16)
        self.workTextCtrl = wx.StaticText(self, wx.ID_ANY, u"")  #$NON-NLS-1$

        self.staticLine = wx.StaticLine(self, wx.HORIZONTAL)
Exemple #2
0
 def _createNonHeaderWidgets(self):
     self.staticBox = wx.StaticBox(
         self, wx.ID_ANY, _extstr(u"accountblogs.BlogList"))  #$NON-NLS-1$
     self.blogListProvider = ZBlogCheckboxListContentProvider()
     self.blogListControl = ZCheckBoxListViewWithButtons(
         self.blogListProvider, self)
     self.blogListControl.SetSizeHints(-1, 150)
     self.refreshButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(u"synchronizeaccountdialog.RefreshBlogList"))  #$NON-NLS-1$
     self.animateControl = ZProgressLabelCtrl(self)
Exemple #3
0
 def _createWidgets(self):
     self.description1 = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"publishersitewizard.WelcomeMessage"))  #$NON-NLS-1$
     self.description1.SetFont(getDefaultFontBold())
     self.description2 = wx.StaticText(
         self,
         wx.ID_ANY,
         _extstr(u"publishersitewizard.WizardDescription"),
         size=wx.Size(-1, 80))  #$NON-NLS-1$
     self.urlLabel = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"publishersitewizard.BlogUrlLabel"))  #$NON-NLS-1$
     urlValidator = ZUrlSelectionValidator(
         _extstr(u"publishersitewizard.BlogUrlInvalid"),
         nonEmpty=False)  #$NON-NLS-1$
     self.urlText = ZValidatingTextCtrl(urlValidator, self, wx.ID_ANY)
     self.urlText.SetToolTipString(
         _extstr(u"publishersitewizard.BlogUrlTooltip"))  #$NON-NLS-1$
     self.animateControl = ZProgressLabelCtrl(self)
     self.clickHereHyperlink = wx.HyperlinkCtrl(
         self, wx.ID_ANY, _extstr(u"publishersitewizard.NoBlogYet"),
         u"http://www.blogger.com/?ref=ZoundryRaven"
     )  #$NON-NLS-2$ #$NON-NLS-1$
Exemple #4
0
 def _createCustomWidgets(self):
     self.progressCtrl = ZProgressLabelCtrl(self, u"", True) #$NON-NLS-1$
     self._debugMsg(u"Done _createCustomWidgets") #$NON-NLS-1$
Exemple #5
0
    def _createWidgets(self):
        self.description1 = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.ApiInfo"))  #$NON-NLS-1$
        self.description1.SetFont(getDefaultFontBold())
        self.description2 = wx.StaticText(
            self,
            wx.ID_ANY,
            _extstr(u"publishersitewizard.ApiInfoDescription"),
            size=wx.Size(-1, 40))  #$NON-NLS-1$

        self.accLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.AccountNameLabel"))  #$NON-NLS-1$
        accNameValidator = ZPublisherAccountNameValidator(self._getModel())
        self.accText = ZValidatingTextCtrl(accNameValidator, self, wx.ID_ANY)
        self.accText.SetToolTipString(
            _extstr(u"publishersitewizard.AccountNameTooltip"))  #$NON-NLS-1$

        self.siteLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.SiteTypeLabel"))  #$NON-NLS-1$
        comboValidator = ZNonEmptySelectionValidator(
            _extstr(u"publishersitewizard.EmptySiteTypeSelectionError")
        )  #$NON-NLS-1$
        self.siteCombo = ZValidatingBitmapComboBox(comboValidator,
                                                   self,
                                                   wx.ID_ANY,
                                                   style=wx.CB_READONLY)
        self.siteCombo.SetToolTipString(
            _extstr(u"publishersitewizard.SiteTypeTooltip"))  #$NON-NLS-1$
        self.Bind(wx.EVT_COMBOBOX, self.onComboEvent, self.siteCombo.widget)

        self.autodiscoveryHint = wx.StaticText(self, wx.ID_ANY,
                                               u"")  #$NON-NLS-1$

        self.usernameLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.UsernameLabel"))  #$NON-NLS-1$
        usernameValidator = ZNonEmptySelectionValidator(
            _extstr(u"publishersitewizard.EmptyUsername"))  #$NON-NLS-1$
        self.usernameText = ZValidatingTextCtrl(usernameValidator, self,
                                                wx.ID_ANY)
        self.usernameText.SetToolTipString(
            _extstr(u"publishersitewizard.UsernameTooltip"))  #$NON-NLS-1$

        self.passwordLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.PasswordLabel"))  #$NON-NLS-1$
        passwordValidator = ZNonEmptySelectionValidator(
            _extstr(u"publishersitewizard.EmptyPassword"))  #$NON-NLS-1$
        self.passwordText = ZValidatingTextCtrl(passwordValidator,
                                                self,
                                                wx.ID_ANY,
                                                style=wx.TE_PASSWORD)
        self.passwordText.SetToolTipString(
            _extstr(u"publishersitewizard.PasswordTooltip"))  #$NON-NLS-1$

        self.apiUrlLabel = wx.StaticText(
            self, wx.ID_ANY,
            _extstr(u"publishersitewizard.ApiUrlLabel"))  #$NON-NLS-1$
        apiUrlValidator = ZUrlSelectionValidator(
            _extstr(u"publishersitewizard.ApiUrlInvalid"))  #$NON-NLS-1$
        self.apiUrlText = ZValidatingTextCtrl(apiUrlValidator, self, wx.ID_ANY)
        self.apiUrlText.SetToolTipString(
            _extstr(u"publishersitewizard.ApiUrlTooltip"))  #$NON-NLS-1$
        self.apiUrlHint = wx.StaticText(self, wx.ID_ANY,
                                        u"Api Url hints")  #$NON-NLS-1$
        self.animateControl = ZProgressLabelCtrl(self)
Exemple #6
0
    def _createWidgets(self):
        self.staticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"infodetailswidgets.Preview")) #$NON-NLS-1$

        self.generatingMsg = ZProgressLabelCtrl(self, _extstr(u"infodetailswidgets.GeneratingPreview")) #$NON-NLS-1$
        self.previewUnavailableMsg = wx.StaticText(self, wx.ID_ANY, _extstr(u"infodetailswidgets.PreviewUnavailable")) #$NON-NLS-1$
        self.previewBmp = ZStaticBitmap(self, None)