Exemple #1
0
	def showScreen(self):
		DynamicBackground().fillDynamicBackgroundColor(self.surface)
		self.myfont = pygame.font.SysFont(None, 30)
		self.songs = self.client.listplaylistinfo(self.playlist)
		self.mainText = self.myfont.render('Songs in '+self.playlist, 1, [255,255,255])
		self.surface.blit(self.mainText,(self.surface.get_width()/2-self.mainText.get_rect().width/2, 0))
		for i in range(0,self.maxInView):
			tc = Text_Control()
			tc.printKey('SONG'+str(i))
		return self.surface
Exemple #2
0
 def showScreen(self, surface):
     self.surface = surface
     DynamicBackground().fillDynamicBackgroundColor(self.surface)
     self.myfont = pygame.font.SysFont(None, 30)
     self.songs = self.client.listplaylistinfo(self.playlist)
     self.mainText = self.myfont.render('Songs in ' + self.playlist, 1,
                                        [255, 255, 255])
     self.surface.blit(self.mainText,
                       (self.surface.get_width() / 2 -
                        self.mainText.get_rect().width / 2, 0))
     for i in range(0, self.maxInView):
         tc = Text_Control()
         tc.printKey('SONG' + str(i))
     return self.surface