![]()  | 
	
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
				
				How to call viz.go() from a GUI
			 
			
			
			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 ![]() 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. Code: 
		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.onStartSimulation)
.....
def onStartSimulation(self):
	self.application.start()
def start(self):
		#Video settings
		#viz.setMultiSample(4)
		#viz.fov(110)
		viz.go()
                '''
                 rest
                '''
 | 
		
  | 
	
		
  | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Call STL files | kk88 | Vizard | 0 | 11-24-2010 02:12 PM | 
| Pspice Call | jassel41 | Vizard | 1 | 10-08-2010 12:16 PM | 
| Call objects created within definitions | lilio | Vizard | 4 | 07-13-2009 12:13 PM | 
| Director call not working | vizmaster | Vizard | 1 | 08-21-2008 11:08 AM | 
| Fading/lightening-Problem and viz.go in module | Johannes | Vizard | 6 | 09-02-2005 05:28 PM |