def createWidgets(self): self.label1 = wx.StaticText(self, wx.ID_ANY, u"Label 1:") #$NON-NLS-1$ self.value1 = ZValidatingTextCtrl(ZValue1Validator(), self) self.label2 = wx.StaticText(self, wx.ID_ANY, u"Label 2:") #$NON-NLS-1$ self.value2 = ZValidatingTextCtrl(ZValue2Validator(), self) self._bindEvents()
def _createWidgets(self): self.staticBox = wx.StaticBox( self, wx.ID_ANY, _extstr(u"settingssubpage.Credentials")) #$NON-NLS-1$ self.usernameLabel = wx.StaticText( self, wx.ID_ANY, _extstr(u"settingssubpage.Username")) #$NON-NLS-1$ self.username = ZValidatingTextCtrl( ZNonEmptySelectionValidator( _extstr(u"settingssubpage.InvalidUsernameError")), self) #$NON-NLS-1$ self.passwordLabel = wx.StaticText( self, wx.ID_ANY, _extstr(u"settingssubpage.Password")) #$NON-NLS-1$ self.password = ZValidatingPasswordCtrl( ZNonEmptySelectionValidator( _extstr(u"settingssubpage.InvalidPasswordError")), self) #$NON-NLS-1$ # FIXME (EPW) add read-only widget for the API type self.staticBox2 = wx.StaticBox( self, wx.ID_ANY, _extstr(u"settingssubpage.APIInformation")) #$NON-NLS-1$ self.endpointLabel = wx.StaticText( self, wx.ID_ANY, _extstr(u"settingssubpage.Endpoint")) #$NON-NLS-1$ self.endpoint = ZValidatingTextCtrl( ZUrlSelectionValidator( _extstr(u"settingssubpage.InvalidEndpointError")), self) #$NON-NLS-1$
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$
def _createNonHeaderWidgets(self): self.imagePropsStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagedialog.ImageProperties")) #$NON-NLS-1$ self.sizeStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagedialog.Size")) #$NON-NLS-1$ self.alignmentStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagedialog.Alignment")) #$NON-NLS-1$ self.borderStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagedialog.Border")) #$NON-NLS-1$ self.srcLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Src")) #$NON-NLS-1$ #$NON-NLS-2$ self.altTextLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.ALTText")) #$NON-NLS-1$ #$NON-NLS-2$ self.titleLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Title")) #$NON-NLS-1$ #$NON-NLS-2$ self.classLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Class")) #$NON-NLS-1$ #$NON-NLS-2$ self.widthLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Width")) #$NON-NLS-1$ #$NON-NLS-2$ self.heightLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Height")) #$NON-NLS-1$ #$NON-NLS-2$ wildcard = u"Image files|*.gif;*.jpg;*.png;*.jpeg" #$NON-NLS-1$ self.filePicker = wx.FilePickerCtrl(self, wildcard=wildcard,style=wx.FLP_OPEN|wx.FLP_FILE_MUST_EXIST )#|wx.FLP_USE_TEXTCTRL) self.srcText = ZValidatingTextCtrl(ZFileUrlSelectionValidator(_extstr(u"imagedialog.InvalidImageURLError")), self, wx.ID_ANY) #$NON-NLS-1$ self.altText = wx.TextCtrl(self, wx.ID_ANY) self.titleText = wx.TextCtrl(self, wx.ID_ANY) self.classText = wx.TextCtrl(self, wx.ID_ANY) self.lockAspect = wx.CheckBox(self,wx.ID_ANY, u"%s" % _extstr(u"imagedialog.LockAspect")) #$NON-NLS-2$ #$NON-NLS-1$ flags = ZIntegerSelectionValidator.ALLOW_EMPTY | ZIntegerSelectionValidator.ALLOW_ZERO | ZIntegerSelectionValidator.POSITIVE_ONLY self.widthText = ZValidatingTextCtrl(ZIntegerSelectionValidator(flags=flags), self, wx.ID_ANY) self.heightText = ZValidatingTextCtrl(ZIntegerSelectionValidator(flags=flags), self, wx.ID_ANY) alignments = [] for aname in ZImageAlignMenuLabels.ALIGN_KEYWORDS: alignments.append( ZImageAlignMenuLabels.ALIGN_LABELS[aname] ) #$NON-NLS-1$ self.alignChoices = wx.Choice(self, wx.ID_ANY, (100, 50), choices = alignments) self.borderStyleLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Style")) #$NON-NLS-1$ #$NON-NLS-2$ self.borderWidthLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Width")) #$NON-NLS-1$ #$NON-NLS-2$ self.borderColorLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Color")) #$NON-NLS-1$ #$NON-NLS-2$ borders = [] for bname in ZImageBorderMenuLabels.BORDER_KEYWORDS: borders.append( ZImageBorderMenuLabels.BORDER_LABELS[bname] ) self.borderStyles = wx.Choice(self, wx.ID_ANY, (200, 50), choices = borders) self.borderWidthValidator = ZCssLengthSelectionValidator() self.borderWidthText = ZValidatingTextCtrl(self.borderWidthValidator, self, wx.ID_ANY) self.borderColorPicker = wx.ColourPickerCtrl(self) self.marginStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagedialog.Margin")) #$NON-NLS-1$ self.marginLeftLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Left")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginRightLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Right")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginTopLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Top")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginBotLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagedialog.Bottom")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginTopText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY) self.marginBotText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY) self.marginLeftText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY) self.marginRightText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY)
def _createNonHeaderWidgets(self): self.doNotGenRadioButton = wx.RadioButton(self, wx.ID_ANY, _extstr(u"imagehandlerdialog.DoNotGenerateOption")) #$NON-NLS-1$ self.genRadioButton = wx.RadioButton(self, wx.ID_ANY, _extstr(u"imagehandlerdialog.GenerateOption")) #$NON-NLS-1$ self.tnSettingsGroupBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"imagehandlerdialog.ThumbnailSettings")) #$NON-NLS-1$ self.sizeLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"imagehandlerdialog.Size")) #$NON-NLS-1$ #$NON-NLS-2$ sizeChoices = [] for size in ZThumbnailSizeMenuLabels.SIZE_KEYWORDS: sizeChoices.append(ZThumbnailSizeMenuLabels.SIZE_LABELS[size]) self.sizeChoice = wx.Choice(self, wx.ID_ANY, (100, 50), choices = sizeChoices) self.alignLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Alignment")) #$NON-NLS-1$ #$NON-NLS-2$ alignments = [] for aname in ZImageAlignMenuLabels.ALIGN_KEYWORDS: alignments.append( ZImageAlignMenuLabels.ALIGN_LABELS[aname] ) #$NON-NLS-1$ self.alignChoice = wx.Choice(self, wx.ID_ANY, (100, 50), choices = alignments) self.borderStaticBox = wx.StaticBox(self, wx.ID_ANY, _blogappextstr(u"imagedialog.Border")) #$NON-NLS-1$ self.borderStyleLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Style")) #$NON-NLS-1$ #$NON-NLS-2$ self.borderWidthLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Width")) #$NON-NLS-1$ #$NON-NLS-2$ self.borderColorLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Color")) #$NON-NLS-1$ #$NON-NLS-2$ borders = [] for bname in ZImageBorderMenuLabels.BORDER_KEYWORDS: borders.append( ZImageBorderMenuLabels.BORDER_LABELS[bname] ) self.borderStyleChoice = wx.Choice(self, wx.ID_ANY, (200, 50), choices = borders) self.borderWidthValidator = ZCssLengthSelectionValidator() self.borderWidthText = ZValidatingTextCtrl(self.borderWidthValidator, self, wx.ID_ANY) self.borderColorPicker = wx.ColourPickerCtrl(self) self.marginStaticBox = wx.StaticBox(self, wx.ID_ANY, _blogappextstr(u"imagedialog.Margin")) #$NON-NLS-1$ self.marginLeftLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Left")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginRightLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Right")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginTopLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Top")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginBotLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _blogappextstr(u"imagedialog.Bottom")) #$NON-NLS-1$ #$NON-NLS-2$ self.marginTopText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY, size=wx.Size(25, -1)) self.marginBotText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY, size=wx.Size(25, -1)) self.marginLeftText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY, size=wx.Size(25, -1)) self.marginRightText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(flags=ZCssLengthSelectionValidator.ALLOW_EMPTY), self, wx.ID_ANY, size=wx.Size(25, -1))
def createWidgets(self): self.staticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"prefpage.general.proxy.name")) #$NON-NLS-1$ self.enableCB = wx.CheckBox(self, wx.ID_ANY, _extstr(u"prefpage.general.proxy.enable")) #$NON-NLS-1$ self.controlsPanel = ZTransparentPanel(self, wx.ID_ANY) self.hostLabel = wx.StaticText(self.controlsPanel, wx.ID_ANY, _extstr(u"prefpage.general.proxy.host")) #$NON-NLS-1$ self.hostTxt = wx.TextCtrl(self.controlsPanel, wx.ID_ANY) self.portLabel = wx.StaticText(self.controlsPanel, wx.ID_ANY, _extstr(u"prefpage.general.proxy.port")) #$NON-NLS-1$ flags = ZIntegerSelectionValidator.ALLOW_EMPTY | ZIntegerSelectionValidator.POSITIVE_ONLY self.portTxt = ZValidatingTextCtrl(ZIntegerSelectionValidator(flags=flags), self.controlsPanel, wx.ID_ANY) self.usernameLabel = wx.StaticText(self.controlsPanel, wx.ID_ANY, _extstr(u"prefpage.general.proxy.username")) #$NON-NLS-1$ self.usernameTxt = wx.TextCtrl(self.controlsPanel, wx.ID_ANY) self.passwordLabel = wx.StaticText(self.controlsPanel, wx.ID_ANY, _extstr(u"prefpage.general.proxy.password")) #$NON-NLS-1$ self.passwordTxt = wx.TextCtrl(self.controlsPanel, wx.ID_ANY, style=wx.TE_PASSWORD)
def _createNonHeaderWidgets(self): wildcard = u"all files|*.*" #$NON-NLS-1$ self.filePicker = wx.FilePickerCtrl(self, wildcard=wildcard,style=wx.FLP_OPEN|wx.FLP_FILE_MUST_EXIST )#|wx.FLP_USE_TEXTCTRL) self.urlLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"linkdialog.URL")) #$NON-NLS-1$ #$NON-NLS-2$ self.titleLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"linkdialog.Title")) #$NON-NLS-1$ #$NON-NLS-2$ self.targetLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"linkdialog.Target")) #$NON-NLS-1$ #$NON-NLS-2$ self.classLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"linkdialog.Class")) #$NON-NLS-1$ #$NON-NLS-2$ self.relLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"linkdialog.Rel")) #$NON-NLS-1$ #$NON-NLS-2$ self.urlText = ZValidatingTextCtrl(ZFileUrlSelectionValidator(_extstr(u"linkdialog.InvalidURLError")), self, wx.ID_ANY) #$NON-NLS-1$ self.titleText = wx.TextCtrl(self, wx.ID_ANY) self.newWindowCB = wx.CheckBox(self, wx.ID_ANY, _extstr(u"linkdialog.OpenInNewWindow")) #$NON-NLS-1$ self.targetText = wx.TextCtrl(self, wx.ID_ANY) self.classText = wx.TextCtrl(self, wx.ID_ANY) self.relText = wx.TextCtrl(self, wx.ID_ANY)
def _createNonHeaderWidgets(self): self.profileInfoStaticBox = wx.StaticBox( self, label=_extstr(u"newprofile.ProfileInfo")) #$NON-NLS-1$ self.profileNameLabel = wx.StaticText( self, wx.ID_ANY, _extstr(u"newprofile.Name:")) #$NON-NLS-1$ self.profileNameText = ZValidatingTextCtrl(ZProfileNameValidator( self.profilesModel), self, wx.ID_ANY, size=wx.Size(325, -1)) self.profileNameText.SetToolTipString( _extstr(u"newprofile.ProfileNameTooltip")) #$NON-NLS-1$ self.profilePathLabel = wx.StaticText( self, wx.ID_ANY, _extstr(u"newprofile.Path:")) #$NON-NLS-1$ self.profilePathCtrl = ZValidatingFileChooserCtrl( ZProfilePathValidator(), self, ZFCC_DIRECTORY_TYPE, _extstr(u"newprofile.ChooseAProfileLocation")) #$NON-NLS-1$ self.profilePathCtrl.SetToolTipString( _extstr(u"newprofile.ProfilePathTooltip")) #$NON-NLS-1$
def _createNonHeaderWidgets(self): self.blogLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"templatedialogs.FromBlog")) #$NON-NLS-1$ #$NON-NLS-2$ self.blogPicker = ZValidatingBlogSelectorCombo( ZNonEmptySelectionValidator( _extstr(u"templatedialogs.ChooseABlog")), self.model, self) #$NON-NLS-1$ self.templateNameLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"templatedialogs.TemplateName") ) #$NON-NLS-1$ #$NON-NLS-2$ self.templateNameText = ZValidatingTextCtrl( ZTemplateNameValidator(self.model), self, wx.ID_ANY) self.templateNameText.SetToolTipString( _extstr( u"templatedialogs.PickAFriendlyTemplateName")) #$NON-NLS-1$ self.makeDefaultTemplateCB = wx.CheckBox( self, wx.ID_ANY, _extstr( u"templatedialogs.MakeThisTemplateTheDefault")) #$NON-NLS-1$ self.staticLine = wx.StaticLine(self, wx.HORIZONTAL)
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$
def _createContentWidgets(self): self.settingsStaticBox = wx.StaticBox( self, wx.ID_ANY, _extstr(u"tabledialog.TableSettings")) #$NON-NLS-1$ if self.model.isInsertMode(): self.rowsLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.Rows")) #$NON-NLS-1$ #$NON-NLS-2$ self.rowsText = ZValidatingTextCtrl( ZIntegerSelectionValidator( flags=ZIntegerSelectionValidator.POSITIVE_ONLY), self, wx.ID_ANY) self.colsLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.Cols")) #$NON-NLS-1$ #$NON-NLS-2$ self.colsText = ZValidatingTextCtrl( ZIntegerSelectionValidator( flags=ZIntegerSelectionValidator.POSITIVE_ONLY), self, wx.ID_ANY) flags = ZCssLengthSelectionValidator.ALLOW_EMPTY self.paddingLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.CellPadding")) #$NON-NLS-1$ #$NON-NLS-2$ self.paddingText = ZValidatingTextCtrl( ZCssLengthSelectionValidator(flags=flags), self, wx.ID_ANY) self.spacingLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.CellSpacing")) #$NON-NLS-1$ #$NON-NLS-2$ self.spacingText = ZValidatingTextCtrl( ZCssLengthSelectionValidator(flags=flags), self, wx.ID_ANY) self.borderLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.Border")) #$NON-NLS-1$ #$NON-NLS-2$ self.borderText = ZValidatingTextCtrl( ZCssLengthSelectionValidator(flags=flags), self, wx.ID_ANY) self.widthLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"tabledialog.Width")) #$NON-NLS-1$ #$NON-NLS-2$ self.widthText = ZValidatingTextCtrl(ZCssLengthSelectionValidator(), self, wx.ID_ANY)
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)