which includes GetContentsPane(). However, when I try to use this function
Python cannot find it. Two examples:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
16763, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "./pw.py", line 4109, in showLogin
self.doShowLogin()
File "./pw.py", line 4112, in doShowLogin
with LoginDialog() as dlg:
File "./pw.py", line 274, in __init__
contentPane = self.GetContentsPane()
AttributeError: 'LoginDialog' object has no attribute 'GetContentsPane'
and
[rshepard@salmo ~]$ python
Python 2.7.5 (default, May 29 2013, 03:26:28) [GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx.lib.sized_controls as sc
contentPane = GetContentsPane()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'GetContentsPane' is not defined
That function is found in two places in sized_controls.py:
which includes GetContentsPane(). However, when I try to use this function
Python cannot find it. Two examples:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
16763, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "./pw.py", line 4109, in showLogin
self.doShowLogin()
File "./pw.py", line 4112, in doShowLogin
with LoginDialog() as dlg:
File "./pw.py", line 274, in __init__
contentPane = self.GetContentsPane()
AttributeError: 'LoginDialog' object has no attribute 'GetContentsPane'
and
[rshepard@salmo ~]$ python
Python 2.7.5 (default, May 29 2013, 03:26:28) [GCC 4.8.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import wx.lib.sized_controls as sc
contentPane = GetContentsPane()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'GetContentsPane' is not defined
That function is found in two places in sized_controls.py:
It's your code's problem, the exceptions mention all your file names or stdin (typed by keyboard). For example you import as sc... But then you don't call sc.GetContentPane()
which includes GetContentsPane(). However, when I try to use this function
Python cannot find it. Two examples:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py", line
16763, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "./pw.py", line 4109, in showLogin
self.doShowLogin()
File "./pw.py", line 4112, in doShowLogin
with LoginDialog() as dlg:
File "./pw.py", line 274, in __init__
contentPane = self.GetContentsPane()
AttributeError: 'LoginDialog' object has no attribute 'GetContentsPane'