Closed timotheeg closed 4 years ago
It looks close! Though the image is missing and buttons seem to be missing.
The buttons seem to be a known issue in OSX python tk. They're not missing, they render white text on white background 😑. And sadly the tk API to set button's foreground and background color don't work in OSX. Sigh...
The good news is that the buttons do work! And so does the autodetection btw, which is awesome!
Great! That means everything functionally works (though aesthetically its trash).
Looks like we shoudl be able to pip install tkmacosx
and
replace tk.Button
with tkmacosx.Button
Probably just need to wrap it into an OSAgnosticTkButton
class
import OSAgnosticTkButton.Button as Button
I also just spotted another possible workaround using the highlightbackground
property of Buttons. I'll try later, and tkmacosx
too, to see if that works.
Yeah reading around the highlightbackground
is hacky and might result in weirdness with the layout. Either way making a new wrapper for Button
and then either using plain tk.Button
or macimpl_highlight_bg
is gonna happen.
Small update for the OSX requirements.
The calibrator app does not render well on OSX yet. I'll see if I can spend some time to look into it, but no promises 😰😅.