示例#1
0
    def __init__(self, parent, id):
        """Creates the frame, calls some construction methods."""
        wx.Frame.__init__(self, parent,
                              id, 'PF-IDE - 0.1a')

        self.conf = config.conf
        
        self.port = get_free_port()
        
        sizer= wx.BoxSizer(wx.VERTICAL)
        self.SetSizer(sizer)
        panel= wx.Panel(self, style= wx.BORDER_THEME)
        sizer.Add(panel, 1, wx.EXPAND|wx.ALL, 1)
        panel_sizer= wx.BoxSizer(wx.VERTICAL)
        panel.SetSizer(panel_sizer)

        self.notebook = Notebook(panel)
        panel_sizer.Add(self.notebook, 1, wx.EXPAND|wx.ALL, 0)        
        
        #perhaps open last edited in the future, for now just open new.
        self.notebook.new_editor_tab()
        self.spawn_menus()
        self.CreateStatusBar()
        self.Bind(wx.EVT_UPDATE_UI, self._evt_update_ui)
示例#2
0
 def _create_port(self):
     """Creates a free port"""
     self._port = get_free_port()
示例#3
0
 def _create_port(self):
     """Creates a free port"""
     self._port = get_free_port()