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_())
scene.visible = 1
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