[PyKDE] How to do *INTERACTIVE* plotting with PyQt (or PyQwt)
Hans-Peter Jansen
hpj at urpla.net
Thu Sep 12 13:42:00 BST 2002
Hi Boudewijn,
On Wednesday 11 September 2002 20:43, Boudewijn Rempt wrote:
>
> Of course, what you hadn't said before, about embedding Python in an MFC
> app, changes the situation a bit. Embedding one gui toolkit in another is
> always frought with danger... And tricky. Still, you _cannot_ do useful
> things with a plain python shell once you've started the QApplication's
> exec_loop -- that's a fact of life, so you _must_ approach the problem from
> another angle. And really, you can offer all the user-friendliness you're
> after from a Python shell embedded in the application. Just see it as
> another window...
BTW: there is light at the end of the tunnel: looks like Qt 3.1 comes with
a class based EventLoop implementation this fall...
http://www.trolltech.com/developer/changes/3.1beta1.html
QApplication
The event loop has been moved to the QEventLoop class, making it easier to
integrate other toolkits with Qt.
New functions:
QEventLoop *eventLoop() const
void setEventLoop( QEventLoop * )
QString sessionKey() const
Hans-Peter
More information about the PyQt
mailing list