示例#1
0
 def createWidgets(self):
     self.staticBox = wx.StaticBox(
         self, wx.ID_ANY,
         _extstr(u"pingsitesprefpage.Ping_Sites"))  #$NON-NLS-1$
     self.contentProvider = ZPingListContentProvider()
     self.pingSites = ZCheckBoxListViewWithButtons(self.contentProvider,
                                                   self, wx.ID_ANY)
示例#2
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$
示例#3
0
    def _createWidgets(self):
        self.overrideCB = wx.CheckBox(self, wx.ID_ANY,
                                      self._getOverrideTagSitesLabel())
        self.panel = ZTransparentPanel(self, wx.ID_ANY)

        self.staticBox = wx.StaticBox(
            self.panel, wx.ID_ANY,
            _extstr(u"tagsubpage.TagSites"))  #$NON-NLS-1$
        self.contentProvider = ZTagspaceListContentProvider()
        self.tagSites = ZCheckBoxListViewWithButtons(self.contentProvider,
                                                     self.panel, wx.ID_ANY)
示例#4
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)
示例#5
0
    def _createStandardDialogWidgets(self):
        ZStandardDialog._createStandardDialogWidgets(self)

        self.provider = ZBlogListContentProvider(self.blogs, self.blog)
        style = wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL
        self.blogsCheckList = ZCheckBoxListViewWithButtons(self.provider,
                                                           self.topPanel,
                                                           style=style)

        singleBlog = len(self.blogs) == 1
        self.localCopyCB = wx.CheckBox(
            self.topPanel, wx.ID_ANY,
            _extstr(u"deletepostsdialog.DeleteLocalCopy"))  #$NON-NLS-1$
        self.localCopyCB.SetValue(singleBlog)
示例#6
0
 def _createListControl(self):
     s = wx.LC_VRULES | wx.LC_HRULES | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL | wx.LC_LIST
     self.catListCtrl = ZCheckBoxListViewWithButtons(self.catListProvider,
                                                     self,
                                                     style=s)
     return self.catListCtrl
示例#7
0
 def _createWidgets(self):
     self.listCtrl = ZCheckBoxListViewWithButtons(self.tagListProvider,
                                                  self)
示例#8
0
 def _createPingPage(self):
     self.pingPanel = ZSmartTransparentPanel(self.notebook, wx.ID_ANY)
     self.pingListProvider = ZPingListContentProvider()
     self.pingListCtrl = ZCheckBoxListViewWithButtons(self.pingListProvider, self.pingPanel)
     return self.pingPanel