enderAPI.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:enderX 作者: Pugduddly 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号