Maxmad68 / PyTouchBar

A NSTouchBar Wrapper for Python
GNU General Public License v3.0
49 stars 11 forks source link

python version #13

Open yanliangemon opened 1 year ago

yanliangemon commented 1 year ago

may i check what is the python version you are using can run the app correctly without crashed? i am using python 3.9.6, that not working, i am not sure is this caused by python version issue?

the app is start success, but nothing on touchbar: below is the code I am using:

import pygame import PyTouchBar

pygame.init()

size = width, height = 400,400

screen = pygame.display.set_mode(size) PyTouchBar.prepare_pygame()

label = PyTouchBar.TouchBarItems.Label(text = 'Foo Bar') PyTouchBar.set_touchbar([label])

while True: for event in pygame.event.get(): if event.type == pygame.QUIT: pygame.quit() break