Ticket #14737 (new defect)
wxNotebook when accessing not initialized page
| Reported by: | wujek.brulion | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | wxPython | Version: | 2.9.3 |
| Keywords: | Cc: | ||
| Blocked By: | Patch: | no | |
| Blocking: |
Description
I'm using wxPython 2.9.3.1 on winXP. This code crashes:
import wx
class MainFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="Simple Notebook Example")
p = wx.Panel(self)
nb = wx.Notebook(p)
page = nb.GetPage(0)
print "end"
if __name__ == "__main__":
app = wx.App()
MainFrame().Show()
app.MainLoop()
This line seems crucial:
page = nb.GetPage(0)
Change History
Note: See
TracTickets for help on using
tickets.
