Beispiel #1
0
 def _create_console(self):
     """Create a console window"""
     self._sizer.AddSpacer((-1, 4))
     headered_panel = HeaderedPanel(self, style=wx.BORDER_THEME)
     HeaderedPanelEvents(headered_panel)
     self._sizer.Add(headered_panel, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 2)
     ctrl = headered_panel.add_panel_ctrl(ConsolePanel, "Console", 30)
     self.console_rich_text = ctrl._rt_ctrl
     self._sizer.AddSpacer((-1, 2))
 def _create_console(self):
     """Create a console window"""
     self._sizer.AddSpacer((-1, 4))
     headered_panel = HeaderedPanel(self, style = wx.BORDER_THEME)
     HeaderedPanelEvents(headered_panel)
     self._sizer.Add(headered_panel, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 2)
     ctrl = headered_panel.add_panel_ctrl(ConsolePanel, "Console", 30)
     self.console_rich_text = ctrl._rt_ctrl
     self._sizer.AddSpacer((-1, 2))
Beispiel #3
0
 def _create_notebook_panel(self):
     """Create the notebook panel"""
     self._sizer.AddSpacer((-1, 2))
     headered_panel = HeaderedPanel(self, style=wx.BORDER_THEME)
     HeaderedPanelEvents(headered_panel)
     self._sizer.Add(headered_panel, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 2)
     ctrl = headered_panel.add_panel_ctrl(NoteBookPanel, "", 100)
     NotebookEvents(ctrl)
     self.notebook = ctrl.notebook
     self.notebook.parent = headered_panel
 def _create_notebook_panel(self):
     """Create the notebook panel"""
     self._sizer.AddSpacer((-1, 2))
     headered_panel = HeaderedPanel(self, style = wx.BORDER_THEME)
     HeaderedPanelEvents(headered_panel)
     self._sizer.Add(headered_panel, 0, wx.EXPAND | wx.LEFT | wx.RIGHT, 2)
     ctrl = headered_panel.add_panel_ctrl(NoteBookPanel, "", 100)
     NotebookEvents(ctrl)
     self.notebook = ctrl.notebook
     self.notebook.parent = headered_panel