def AddPage(self, page=None, winId=wx.ID_ANY, title=u'tab', select=False, imageId=0): if not page: page = wx.Panel(self, winId) # Existing instance should already have an ID elif winId != wx.ID_ANY: Logger.Debug(__name__, u'Ignoring winId argument for pre-constructed page') if wx.MAJOR_VERSION <= 2: if not isinstance(imageId, wx.Bitmap): imageId = wx.NullBitmap AuiNotebook.AddPage(self, page, title, select, imageId) return page