Ejemplo n.º 1
0
    def __init__(self,parent,id,port):
        wx.Notebook.__init__(self,parent,id,wx.DefaultPosition, style=wx.SIMPLE_BORDER|wx.NB_TOP)
        self.m_port = port
        self.init()

        wx.EVT_NOTEBOOK_PAGE_CHANGED(self, self.GetId(), self.OnPageChanged)
        wx.EVT_NOTEBOOK_PAGE_CHANGING(self, self.GetId(), self.OnPageChanging)
Ejemplo n.º 2
0
 def __init__(self, parent):
     """Create EditorNotebook instance."""
     wx.Notebook.__init__(self, parent, id=-1, style=wx.CLIP_CHILDREN)
     wx.EVT_NOTEBOOK_PAGE_CHANGING(self, self.GetId(),
                                   self.OnPageChanging)
     wx.EVT_NOTEBOOK_PAGE_CHANGED(self, self.GetId(),
                                  self.OnPageChanged)
     wx.EVT_IDLE(self, self.OnIdle)
Ejemplo n.º 3
0
    def __init__(self,parent,id,page,portfolio,matrix):
        wx.Notebook.__init__(self,parent,id,style=wx.SIMPLE_BORDER|wx.NB_TOP)
        self.m_portfolio = portfolio
        self.m_matrix = matrix
        self.m_parent = parent
        self.init(parent)

        # events
        wx.EVT_NOTEBOOK_PAGE_CHANGED(self, id, self.OnPageChanged)
        wx.EVT_NOTEBOOK_PAGE_CHANGING(self, id, self.OnPageChanging)
        wx.EVT_ERASE_BACKGROUND(self,self.OnEraseBackground)
Ejemplo n.º 4
0
    def __init__(self, parent, site, id=wx.NewId()):
        wx.Notebook.__init__(self, parent, id)

        # The site is the top-level frame containing this notebook.
        self.site = site

        wx.EVT_ERASE_BACKGROUND(self, self.OnEraseBackground)

        # Handle changed/changing events to properly activate panels.
        wx.EVT_NOTEBOOK_PAGE_CHANGED(self, id, self.OnChanged)
        wx.EVT_NOTEBOOK_PAGE_CHANGING(self, id, self.OnChanging)