← Back to team overview

yade-dev team mailing list archive

Re: pyqt4 interface

 


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