def _createContentWidgets(self): self.sizeStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"fontdialog.FontSettings")) #$NON-NLS-1$ self.previewStaticBox = wx.StaticBox(self, wx.ID_ANY, _extstr(u"fontdialog.FontPreview")) #$NON-NLS-1$ self.fontLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.FontName")) #$NON-NLS-1$ #$NON-NLS-2$ self.sizeLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.FontSize")) #$NON-NLS-1$ #$NON-NLS-2$ self.colorLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.Color")) #$NON-NLS-1$ #$NON-NLS-2$ self.backgroundLabel = wx.StaticText(self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.BackgroundColor")) #$NON-NLS-1$ #$NON-NLS-2$ sizes = u"Default,8px,10px,12px,14px,16px,18px,24px,36px".split(u",") #$NON-NLS-1$ #$NON-NLS-2$ self.sizeChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices = sizes) fonts = [u"Default"] #$NON-NLS-1$ fonts.extend(self.systemFontNames) self.fontChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices = fonts) colors = [u"Default"] #$NON-NLS-1$ self.colorChoicesHasRecent = False self.colorChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices = colors) self.colorPicker = wx.ColourPickerCtrl(self) bgColors = [u"Default"] #$NON-NLS-1$ self.bgColorChoicesHasRecent = False self.bgColorChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices = bgColors) self.bgColorPicker = wx.ColourPickerCtrl(self) self.previewCntrl = ZHTMLViewControl(self, wx.ID_ANY)
def _createCreditsPage(self): self.creditsPanel = wx.Panel(self.notebook, wx.ID_ANY) self.creditsPanel.SetBackgroundColour(wx.WHITE) self.htmlWidget = ZHTMLViewControl(self.creditsPanel) return self.creditsPanel
def _createWindowWidgets(self, parent): self.headerPanel = self._createHeaderPanel(parent) self.headerStaticLine = wx.StaticLine(parent, wx.ID_ANY) self.splitterWindow = ZSplitterWindow(parent) self.splitterWindow.SetSizeHints(700, 600) self.topPanel = ZTransparentPanel(self.splitterWindow, wx.ID_ANY) self.topStaticBox = wx.StaticBox(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Templates")) #$NON-NLS-1$ provider = ZTemplateListProvider(self.model) self.templateList = ZListViewEx(provider, self.topPanel) self.addButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Add")) #$NON-NLS-1$ self.removeButton = wx.Button(self.topPanel, wx.ID_ANY, _extstr(u"templatemanager.Remove")) #$NON-NLS-1$ self.removeButton.Enable(False) self.preview = ZHTMLViewControl(self.splitterWindow, wx.ID_ANY, style = wx.NO_FULL_REPAINT_ON_RESIZE | wx.SIMPLE_BORDER) self.splitterWindow.SetSashSize(10) self.splitterWindow.SplitHorizontally(self.topPanel, self.preview, 150) self.splitterWindow.SetMinimumPaneSize(100) self.statusBar = self._createStatusBar() self.SetStatusBar(self.statusBar)
def createWidgets(self): self.sizeStaticBox = wx.StaticBox( self, wx.ID_ANY, _extstr(u"fontdialog.FontSettings")) #$NON-NLS-1$ self.previewStaticBox = wx.StaticBox( self, wx.ID_ANY, _extstr(u"fontdialog.FontPreview")) #$NON-NLS-1$ self.fontLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.FontName")) #$NON-NLS-1$ #$NON-NLS-2$ self.sizeLabel = wx.StaticText( self, wx.ID_ANY, u"%s:" % _extstr(u"fontdialog.FontSize")) #$NON-NLS-1$ #$NON-NLS-2$ sizes = u"Default,10px,12px,14px,16px,18px,22px,24px,26px,28px,36px".split( u",") #$NON-NLS-1$ #$NON-NLS-2$ self.sizeChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices=sizes) fonts = [u"Default"] #$NON-NLS-1$ fonts.extend(self.systemFontNames) self.fontChoices = wx.Choice(self, wx.ID_ANY, (100, -1), choices=fonts) self.previewCntrl = ZHTMLViewControl(self, wx.ID_ANY)
def _createWidgets(self): self.htmlViewer = ZHTMLViewControl(self, wx.ID_ANY) self._clearHtmlContent()
def _createWidgets(self): self.htmlWidget = ZHTMLViewControl(self, wx.ID_ANY) self.htmlWidget.setLinkCallback(self)
def createContentPreviewer(self, parentWindow, zblogPostEditor, model): #@UnusedVariable u"""createContentPreviewer(wxWindow, ZBlogPostEditor, ZBlogPostEditorModel) -> IZHTMLViewControl """ #$NON-NLS-1$ htmlview = ZHTMLViewControl(parentWindow, wx.ID_ANY) return htmlview