-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello World directions #4
Comments
Good morning, This is a simple "Hello World" program, it just shows a "Hello World!" label on the touchbar for an empty tkinter window: from PyTouchBar import *
fen = Tk()
prepare_tk_windows(fen)
lbl = TouchBarItems.Label(text = "Hello World!")
set_touchbar([lbl])
fen.mainloop() |
Hi, this example does not work for me too, I get a blank touchbar on python 3.10 EDIT: Found the solution, after I added a label or something to the TK window the Label on the touchbar showed up |
Using Python 3.8.2 and requirements.txt listed above it works me!, thanks @Maxmad68 . |
Any ideas to force Tkinter window to be in front? |
I recall another thread from a while ago (different project) where it was concluded that this is not possible in mac OS. Not saying that it's actually impossible... but I wouldn't get your hopes up. |
I ran
testTk()
function but my touch bar didn't change at all. Am I missing something? If there is simpler way to run a hello world example, please give me some directions.Hardware
Complete MacBook Pro 16-Inch "Core i7" 2.6 2019 Specs
OSX
I just created a virtual environment an install following requirements
requirements.txt
touchbar.py
The text was updated successfully, but these errors were encountered: