1
from tkinter import *
import PyTouchBar
PyTouchBar.set_customization_identifier("com.madrau.PyTouchBar.touchbar")

root = Tk()
starter = PyTouchBar.TouchBarItems.Button(title='играть', color=(PyTouchBar.Color.green))
PyTouchBar.set_touchbar([starter])
PyTouchBar.prepare_tk_windows(root)

root.mainloop()

Used lyb PyTouchBar/tkinter

Code open new modal white widnow 'kt' And nothing happened on the touchbar. It may be issue with touchbar, i have with physical 'esc' button. How possible to fix it?

changed python v. PyTouchBar works just with 3+ i using 3.11

apple m1 pro 2020

Bryan Oakley
  • 370,779
  • 53
  • 539
  • 685

0 Answers0