yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #05547
Re: pyqt4 interface
-
To:
yade-dev@xxxxxxxxxxxxxxxxxxx
-
From:
"Sergei D." <sj2001@xxxxxxxxx>
-
Date:
Wed, 18 Aug 2010 11:50:56 +0400
-
In-reply-to:
<1282058913.1788.47.camel@flux>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.2.4) Gecko/20100608 SUSE/3.1.0 Thunderbird/3.1
Just like the old one...? F12 to open the controller (or run
yade.qt.Controller()) and so on.
F12 key don't open the controller for me.
Examples of sessions:
1) Failed:
sega@think:~/work/yade/trunk/scripts/test> yade-trunk facet-sphere.py
Welcome to Yade bzr2404
TCP python prompt on localhost:9000, auth cookie `sueayk'
TCP info provider on localhost:21000
Running script facet-sphere.py
[[ ^L clears screen, ^U kills line. F8 plot. ]] <--- NO F12
Yade [1]: from yade import qt
Yade [2]: qt.View()
QWidget: Must construct a QApplication before a QPaintDevice
Сrash...
2) Successful:
sega@think:~/work/yade/trunk/scripts/test> yade-trunk facet-sphere.py
Welcome to Yade bzr2404
TCP python prompt on localhost:9000, auth cookie `sakedy'
TCP info provider on localhost:21000
Running script facet-sphere.py
[[ ^L clears screen, ^U kills line. F8 plot. ]]
Yade [1]: from PyQGLViewer import *
Yade [2]: from PyQt4.QtGui import *
Yade [3]: argv=[]
Yade [4]: app = QApplication(argv)
Yade [5]: from yade import qt
Yade [6]: qt.View()
-> [6]: <GLViewer for view #0>
Yade [7]:
--
Best regards,
Sergei D.
Follow ups
References