Dears,
I've a problem integrating VPython5 with PyQt4. If anyone can help me...
thanks a lot!
Here is the problem:
The following code should show a PyQt4 form together with a VPython scene.
Using VPython3 it works correctly, while useing VPython5 it crashes.
Does anyone has experience on facing this problem?
I would be very grateful if anyone can help me.
from visual import *
from PyQt4 import QtCore, QtGui
import sys
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QDialog.__init__(self)
scene.visible = 1
b = box()
app = QtGui.QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
replacing
scene.visible = 1
with
scene.visible = 0
it works and the Qt window is shown also with VPython5 (but the scene
can't be obviously seen!).
Thanks in advance
Matteo
--
-------------------------------------------------------
Matteo Malosio, Eng.
Researcher
ITIA-CNR (www.itia.cnr.it)
Institute of Industrial Technologies and Automation
National Research Council
via Bassini 15, 20133 MILANO, ITALY
Ph: +39 0223699978
Fax: +39 0223699925
e-mail: mat...@it...
-------------------------------------------------------
|