def __init__(self, workQueue, queueLock, dataDir):
super(Extension, self).__init__() # super() will call Thread.__init__ for you
self.workQueue = workQueue
self.queueLock = queueLock
self.tData = ['', [], 'Extension']
self.hasQueue = False
print (pygame.display.Info().current_w, pygame.display.Info().current_h)
self.screenTemp = pygame.Surface((pygame.display.Info().current_w, pygame.display.Info().current_h), pygame.SRCALPHA, 32)
'''Used by the WM to prevent flickering'''
self.screen = pygame.Surface((pygame.display.Info().current_w, pygame.display.Info().current_h), pygame.SRCALPHA, 32)
'''Screen buffer that extensions draw on'''
self._stop = threading.Event()
self.dataDir = dataDir
self.errorData = None
self.args = None
self.extName = "Unnamed Extension"
#self.screen.fill((255,255,255,255))
评论列表
文章目录