(self, loading=False)
Shows a welcoming screen with package and author information,
		either depecting "Loading, please wait..." or "Press any key to
		start", depending on the loading argument
		
		arguments
		None
		
		keyword arguments
		loading		--	Boolean indicating whether welcoming screen
						should say "Loading, please wait..." or
						"Press any key to start"

		returns
		None			--	directly draws on self.disp
Shows a welcoming screen with package and author information,
		either depecting "Loading, please wait..." or "Press any key to
		start", depending on the loading argument
		
		arguments
		None
		
		keyword arguments
		loading		--	Boolean indicating whether welcoming screen
						should say "Loading, please wait..." or
						"Press any key to start"
Shows a welcoming screen with package and author information either depecting Loading please wait ... or Press any key to start depending on the loading argument arguments None keyword arguments loading -- Boolean indicating whether welcoming screen should say Loading please wait ... or Press any key to start
def show_welcome(self, loading=False):
		
		"""Shows a welcoming screen with package and author information,
		either depecting "Loading, please wait..." or "Press any key to
		start", depending on the loading argument
		
		arguments
		None
		
		keyword arguments
		loading		--	Boolean indicating whether welcoming screen
						should say "Loading, please wait..." or
						"Press any key to start"

		returns
		None			--	directly draws on self.disp
		"""
		
		# welcome text
		welcometext = \
		"""Welcome to the Webcam EyeTracker calibration interface!
		
		author: Edwin Dalmaijer
		version: 0.1 (12-10-2013)
		
		
		
		"""
		
		# reset display
		self.disp.fill(self.bgc)
		
		# loading message
		if loading:
			welcometext += "Loading, please wait..."
		else:
			welcometext += "Press any key to start!"
		
		# remove tabs from text
		welcometext = welcometext.replace("\t","")
		
		# draw lines on display
		x = self.dispsize[0]/2; y = self.dispsize[0]/2
		lines = welcometext.split("\n")
		nlines = len(lines)
		for lnr in range(nlines):
			# render text
			linesize = self.font.size(lines[lnr])
			rendered = self.font.render(lines[lnr], True, self.fgc) # Font.render(text, antialias, color, background=None)
			# position
			pos = (x-linesize[0]/2, y + (lnr - nlines/2)*linesize[1])
			# draw to disp
			self.disp.blit(rendered, pos)

		# update!
		pygame.display.flip()
def show_welcome ( self , loading = False ) : # welcome text welcometext = """Welcome to the Webcam EyeTracker calibration interface!
		
		author: Edwin Dalmaijer
		version: 0.1 (12-10-2013)
		
		
		
		""" # reset display self . disp . fill ( self . bgc ) # loading message if loading : welcometext += "Loading, please wait..." else : welcometext += "Press any key to start!" # remove tabs from text welcometext = welcometext . replace ( "\t" , "" ) # draw lines on display x = self . dispsize [ 0 ] / 2 y = self . dispsize [ 0 ] / 2 lines = welcometext . split ( "\n" ) nlines = len ( lines ) for lnr in range ( nlines ) : # render text linesize = self . font . size ( lines [ lnr ] ) rendered = self . font . render ( lines [ lnr ] , True , self . fgc ) # Font.render(text, antialias, color, background=None) # position pos = ( x - linesize [ 0 ] / 2 , y + ( lnr - nlines / 2 ) * linesize [ 1 ] ) # draw to disp self . disp . blit ( rendered , pos ) # update! pygame . display . flip ( )