Exemple #1
0
    def __createGeneralControls(self):
        # Page title
        self.titleLabel = wx.StaticText(self, label=_('Title'))
        self.titleTextCtrl = wx.TextCtrl(self, value='')
        self.titleTextCtrl.SetMinSize((350, -1))

        # Page icon
        self.iconBtn = wx.BitmapButton(self)
        self.iconBtn.SetMinSize((40, -1))
        self.iconBtn.SetToolTip(_('Page icon'))
        self.iconsPopup = IconsListPopup(self)
        self.iconsPopup.SetSize((self._POPUP_WIDTH, self._POPUP_HEIGHT))

        # Page type
        self.typeLabel = wx.StaticText(self, label=_('Page type'))
        self.typeCombo = wx.ComboBox(self,
                                     choices=[],
                                     style=wx.CB_DROPDOWN | wx.CB_READONLY)

        # Page order
        self.orderLabel = wx.StaticText(self, label=_('New page position'))
        self.orderCombo = wx.ComboBox(self,
                                      choices=[],
                                      style=wx.CB_DROPDOWN | wx.CB_READONLY)

        # Tags
        self.tagsSelector = TagsSelector(self)
Exemple #2
0
    def __createGeneralControls(self):
        self.titleLabel = wx.StaticText(self, -1, _(u"Title"))

        self.titleTextCtrl = wx.TextCtrl(self, value="")
        self.titleTextCtrl.SetMinSize((350, -1))

        self.typeCombo = wx.ComboBox(self,
                                     -1,
                                     choices=[],
                                     style=wx.CB_DROPDOWN | wx.CB_READONLY)

        self.tagsSelector = TagsSelector(self)
        self.typeLabel = wx.StaticText(self, -1, _(u"Page type"))
Exemple #3
0
    def __createGeneralControls(self):
        # Page alias
        self.titleLabel = wx.StaticText(self, label=_(u"Title"))
        self.titleTextCtrl = wx.TextCtrl(self, value="")
        self.titleTextCtrl.SetMinSize((350, -1))

        # Page type
        self.typeLabel = wx.StaticText(self, label=_(u"Page type"))
        self.typeCombo = wx.ComboBox(self,
                                     choices=[],
                                     style=wx.CB_DROPDOWN | wx.CB_READONLY)

        # Page order
        self.orderLabel = wx.StaticText(self, label=_('New page position'))
        self.orderCombo = wx.ComboBox(self,
                                      choices=[],
                                      style=wx.CB_DROPDOWN | wx.CB_READONLY)

        # Tags
        self.tagsSelector = TagsSelector(self)
Exemple #4
0
 def _addTagsList(self, mainSizer):
     self.tagsSelector = TagsSelector(self)
     mainSizer.Add(self.tagsSelector, 0, wx.EXPAND, 0)