Problem with vpApp (FileSelectionDialog.GetFileName)

Frank Teusink (Frank.Teusink@cwi.nl)
Tue, 16 Aug 1994 10:04:23 GMT

Hi,

I have a problem with the method GetFileName() of the FileSelectionDialog class.
It is best demonstrated using the test application DialogTest.py, which seems
to suffer from the same problem.

When I run DialogTest.py, push the button FileSelectionDialog, and (in that dialog)
push the button OK (after selecting a file), python crashes with the following
message:

Traceback (innermost last):
File "<stdin>", line 1, in ?
File "./DialogTest.py", line 116, in ?
test()
File "./DialogTest.py", line 114, in test
app.Run()
File "/ufs/per/src/python/vpApp/lib/Application.py", line 170, in Run
Xt.MainLoop()
File "/ufs/per/src/python/vpApp/lib/Dialog.py", line 275, in wOkCB
self.OkCB( None )
File "/ufs/per/src/python/vpApp/lib/Dialog.py", line 272, in OkCB
self.ok_cb( self )
File "./DialogTest.py", line 102, in CB
print dialog.GetFileName()
AttributeError: GetFileName

Does anyone have a clue?

Regards,

Frank Teusink

-- 
Frank Teusink          CWI                  | | | | | | | | | | | | |
email: frankt@cwi.nl   P.O.Box 94079        | | | | Quotation | | | |
tel: +31 20 592 4075   1090 GB  Amsterdam   |  under  construction  |
fax  +31 20 592 4199   The Netherlands      | | | | | | | | | | | | |