Thummi
08-05-2015, 07:01 AM
Hey,
currently i am working on the GUI for a project and i got stuck on a stupid problem.
If i try to call viz.go() via a button it does not work as it should. I get stuck in the loading animation
http://i.imgur.com/wfagdkZ.png
If i call viz.go() in an otherwise empty script it works as it should.
I created the GUI with pyQT and qt Designer and the button is connected to a method which calls the method of an other object, which contains the viz.go() call.
def __init__(self):
super(MainWindow, self).__init__()
uic.loadUi('ballconfig.ui', self)
self.application = Application.application()
self.show()
.....
#Connect the buttons.
....
self.start_Button.clicked.connect(self.onStartSimu lation)
.....
def onStartSimulation(self):
self.application.start()
def start(self):
#Video settings
#viz.setMultiSample(4)
#viz.fov(110)
viz.go()
'''
rest
'''
That is the way the code looks like currently. I currently don't have the slightest clue why it does not work. Did i forget anything(i hope) or is this a known issue(i hope not) ?
currently i am working on the GUI for a project and i got stuck on a stupid problem.
If i try to call viz.go() via a button it does not work as it should. I get stuck in the loading animation
http://i.imgur.com/wfagdkZ.png
If i call viz.go() in an otherwise empty script it works as it should.
I created the GUI with pyQT and qt Designer and the button is connected to a method which calls the method of an other object, which contains the viz.go() call.
def __init__(self):
super(MainWindow, self).__init__()
uic.loadUi('ballconfig.ui', self)
self.application = Application.application()
self.show()
.....
#Connect the buttons.
....
self.start_Button.clicked.connect(self.onStartSimu lation)
.....
def onStartSimulation(self):
self.application.start()
def start(self):
#Video settings
#viz.setMultiSample(4)
#viz.fov(110)
viz.go()
'''
rest
'''
That is the way the code looks like currently. I currently don't have the slightest clue why it does not work. Did i forget anything(i hope) or is this a known issue(i hope not) ?