I have a wx.Notebook that adds panels to each of 5 tabs. Python does not
find a panel parameter in __init__().
The traceback:
File "./openEDMS.py", line 347, in __init__
self.panel1 = SiteOLV(self, site_name, site_type, source, lat, lon,
NameError: name 'site_name' is not defined
The notebook:
class MainNB(wx.Notebook):
def __init__(self, parent, id):
wx.Notebook.__init__(self, parent, id, style=wx.NB_TOP)
self.panel1 = SiteOLV(self, site_name, site_type, source, lat, lon,
stream, basin, comment)
...
and the SiteOLV panel:
class SiteOLV(wx.Panel):
def __init__(self, site_name, site_type, source, lat, lon, stream, basin, comment):
wx.Panel.__init__(self, parent, id)
I've looked at the wx.Notebook API and various examples and I don't see
what I've done incorrectly. Please show me what I've omitted or wrote
incorrectly.
Rich