(self)
return tracker
Starts running the GUI
		
		arguments
		None
		
		keyword arguments
		None
		
		returns
		None
Starts running the GUI
		
		arguments
		None
		
		keyword arguments
		None
		
		returns
		None
Starts running the GUI arguments None keyword arguments None returns None
def start(self):
		
		"""Starts running the GUI
		
		arguments
		None
		
		keyword arguments
		None
		
		returns
		None
		"""

		# show welcoming screen (loading...)
		self.show_welcome(loading=True)
		
		# DEBUG #
		if DEBUG:
			self.savefile.write(pygame.image.tostring(self.disp,'RGB')+BUFFSEP)
		# # # # #
		
		# create GUI
		self.setup_GUI()
		
		# replace 'loading' on welcoming screen with 'press any key to start'
		self.show_welcome(loading=False)
		
		# DEBUG #
		if DEBUG:
			self.savefile.write(pygame.image.tostring(self.disp,'RGB')+BUFFSEP)
		# # # # #
		
		# wait for keypress
		noinput = True
		while noinput:
			for event in pygame.event.get():
				if event.type == pygame.KEYDOWN:
					noinput = False
		
		# show welcoming screen (and we're loading again)
		self.show_welcome(loading=True)
		
		# DEBUG #
		if DEBUG:
			self.savefile.write(pygame.image.tostring(self.disp,'RGB')+BUFFSEP)
		# # # # #

		# draw general GUI (no stage information yet)
		self.draw_stage(stagenr=None)
		
		# DEBUG #
		if DEBUG:
			self.savefile.write(pygame.image.tostring(self.disp,'RGB')+BUFFSEP)
		# # # # #
		
		# mouse visibility
		pygame.mouse.set_visible(True)
		
		# start setup (should return a CamEyeTracker instance)
		tracker = self.run_GUI()
		
		return tracker
def start ( self ) : # show welcoming screen (loading...) self . show_welcome ( loading = True ) # DEBUG # if DEBUG : self . savefile . write ( pygame . image . tostring ( self . disp , 'RGB' ) + BUFFSEP ) # # # # # # create GUI self . setup_GUI ( ) # replace 'loading' on welcoming screen with 'press any key to start' self . show_welcome ( loading = False ) # DEBUG # if DEBUG : self . savefile . write ( pygame . image . tostring ( self . disp , 'RGB' ) + BUFFSEP ) # # # # # # wait for keypress noinput = True while noinput : for event in pygame . event . get ( ) : if event . type == pygame . KEYDOWN : noinput = False # show welcoming screen (and we're loading again) self . show_welcome ( loading = True ) # DEBUG # if DEBUG : self . savefile . write ( pygame . image . tostring ( self . disp , 'RGB' ) + BUFFSEP ) # # # # # # draw general GUI (no stage information yet) self . draw_stage ( stagenr = None ) # DEBUG # if DEBUG : self . savefile . write ( pygame . image . tostring ( self . disp , 'RGB' ) + BUFFSEP ) # # # # # # mouse visibility pygame . mouse . set_visible ( True ) # start setup (should return a CamEyeTracker instance) tracker = self . run_GUI ( ) return tracker