Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/01/2010, 13:32
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Como cerrar una pestaña de un Notebook en wxPython

Código Python:
Ver original
  1. import wx
  2. import wx.lib.inspection
  3. app = wx.PySimpleApp()
  4. self = wx.Frame(None, -1, "Vonceff", size=(600,600))
  5.  
  6. Panel = wx.Panel(self)
  7. Notebook = wx.aui.AuiNotebook(Panel)
  8.  
  9.  
  10. def start():
  11.     #def delate(event):
  12.     #    page_2.Destroy()
  13.     page_2 = wx.Panel(Notebook)
  14.     #a = wx.Button(page_2, -1, "Eliminar pestana")
  15.     #a.Bind(wx.EVT_BUTTON,delate)
  16.     Notebook.AddPage(page_2, "Tab 1")
  17. start()
  18. start()
  19.  
  20. sizer = wx.BoxSizer()
  21. sizer.Add(Notebook, 1, wx.EXPAND)
  22. Panel.SetSizer(sizer)
  23.  
  24. self.Show()
  25.  
  26. app.MainLoop()
Parece que alguien no ha leído la documentación.