Пример #1
0
 def _createWidgets(self):
     self.description1 = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"publishersitewizard.Confirm"))  #$NON-NLS-1$
     self.description1.SetFont(getDefaultFontBold())
     self.description2 = wx.StaticText(
         self,
         wx.ID_ANY,
         _extstr(u"publishersitewizard.ConfirmDescription"),
         size=wx.Size(-1, 40))  #$NON-NLS-1$
     self.staticBox = wx.StaticBox(
         self, wx.ID_ANY, _extstr(u"accountblogs.BlogList"))  #$NON-NLS-1$
     self.blogListControl = ZCheckBoxListViewWithButtons(
         self.blogListProvider, self)
     self.mediaUploadLabel = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(
             u"publishersitewizard.MediaUploadMethodLabel"))  #$NON-NLS-1$
     comboValidator = ZNullControlValidator()
     self.mediaUploadCombo = ZValidatingBitmapComboBox(comboValidator,
                                                       self,
                                                       wx.ID_ANY,
                                                       style=wx.CB_READONLY)
     self.mediaUploadCombo.SetToolTipString(
         _extstr(
             u"publishersitewizard.MediaUploadMethodTooltip"))  #$NON-NLS-1$
     self.mediaWizardButton = wx.Button(
         self, wx.ID_ANY,
         _extstr(
             u"publishersitewizard.CreateNewMediaStorage"))  #$NON-NLS-1$
Пример #2
0
 def _createWidgets(self):
     self.description1 = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"mediastoragewizard.WelcomeMessage"))  #$NON-NLS-1$
     self.description1.SetFont(getDefaultFontBold())
     self.description2 = wx.StaticText(
         self,
         wx.ID_ANY,
         _extstr(u"mediastoragewizard.WizardDescription"),
         size=wx.Size(-1, 80))  #$NON-NLS-1$
     self.siteLabel = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"mediastoragewizard.MediaStorageType"))  #$NON-NLS-1$
     comboValidator = ZNonEmptySelectionValidator(
         _extstr(u"mediastoragewizard.EmptyStoreTypeSelectionError")
     )  #$NON-NLS-1$
     self.siteCombo = ZValidatingBitmapComboBox(comboValidator,
                                                self,
                                                wx.ID_ANY,
                                                style=wx.CB_READONLY)
     self.siteCombo.SetToolTipString(
         _extstr(u"mediastoragewizard.StoreTypeComboTooltip"))  #$NON-NLS-1$
     self.nameLabel = wx.StaticText(
         self, wx.ID_ANY,
         _extstr(u"mediastoragewizard.MediaStorageName"))  #$NON-NLS-1$
     nameValidator = ZMediaStorageNameValidator(self._getModel())
     self.nameText = ZValidatingTextCtrl(nameValidator, self, wx.ID_ANY)
     self.nameText.SetToolTipString(
         _extstr(
             u"mediastoragewizard.MediaStorageNameTooltip"))  #$NON-NLS-1$
     self.clickHereHyperlink = wx.HyperlinkCtrl(
         self, wx.ID_ANY, _extstr(u"mediastoragewizard.NoStorageLink"),
         u"http://picasaweb.google.com/?ref=ZoundryRaven"
     )  #$NON-NLS-2$ #$NON-NLS-1$
Пример #3
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)