[vtkusers] running python from the interpreter

Prabhu Ramachandran prabhu_r at users.sf.net
Tue Mar 1 07:18:51 EST 2005


>>>>> "ES" == Eduardo Suarez <eduardo at ctm.ulpgc.es> writes:

    ES> I have seen the changes in QVTKRenderWindowInteractor.py and
    ES> it works much better. However,

[...]
    ES> When i press 'q', the windows freezes and the interpreter is
    ES> released.  But the windows is still there. Is this the normal
    ES> behavior? If i kill the window, the interpreter dies.

Running a GUI application from an interactive Python interpreter isn't
without its perils.  If you really want to do this you should try with
the Tk based widgets rather than with the Qt one.  If you haven't
written any GUI apps using Python, then you should first learn one of
them before messing with these widgets.

cheers,
prabhu



More information about the vtkusers mailing list