While I'm making great progress in understanding and applying wxPython, I
have other python hurdles to overcome by learning. This morning, I've been
trying to understand just what is the appropriate syntax to fix this error:
[rshepard@salmo]$ python eikos.py Traceback (most recent call last):
File "eikos.py", line 25, in ?
main()
File "eikos.py", line 21, in main
application = BoaApp(0)
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line 7473, in __init__
self._BootstrapApp()
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line 7125, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "eikos.py", line 15, in OnInit
self.main = eikosFrame1.create(None)
File "/mnt/usr2/fuzzy/eikos/ui/eikosFrame1.py", line 10, in create
return Frame1(parent)
File "/mnt/usr2/fuzzy/eikos/ui/eikosFrame1.py", line 257, in __init__
self._init_ctrls(parent)
File "/mnt/usr2/fuzzy/eikos/ui/eikosFrame1.py", line 235, in _init_ctrls
self.framepanel1.SetBestFittingSize(wx.Size(750, 500))
File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-ansi/wx/_core.py", line 8089, in SetBestFittingSize
return _core_.Window_SetBestFittingSize(*args, **kwargs)
TypeError: argument number 1: a 'wxWindow *' is expected, 'modModel' is received.
The file, eikosFrame1.py, was done in Boa; the file modModel.py written in
emacs. Despite my thrashing around, I have not identified just what window
object is needed in line 235 of the first listed file.
I'm trying to put the contents of modModel on the first page of the
notebook in eikosFrame1. If there's a better way to do this, please clue me
in so I can do the other five notebook pages properly.
TIA,
Rich
shepard.tgz (5.67 KB)
···
--
Richard B. Shepard, Ph.D. | Author of "Quantifying Environmental
Applied Ecosystem Services, Inc. (TM) | Impact Assessments Using Fuzzy Logic"
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863