Skip to content
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

Tk window error #2

Open
EvelynK14 opened this issue Jan 3, 2023 · 6 comments
Open

Tk window error #2

EvelynK14 opened this issue Jan 3, 2023 · 6 comments

Comments

@EvelynK14
Copy link

Tk window not showing camera preview and background is black.
image

@computervisioneng
Copy link
Owner

what Python version are you using?

@EvelynK14
Copy link
Author

python 3.9

@computervisioneng
Copy link
Owner

it seems there is a something like a bug with Tkinter in macOS, here are a couple of links which could be useful
https://www.reddit.com/r/Python/comments/q2rpmp/tkinter_for_python_310_broken_on_macos/
https://stackoverflow.com/questions/73056296/tkinter-on-mac-shows-up-as-a-black-screen

@EvelynK14
Copy link
Author

sill having a same problem 😭

@computervisioneng
Copy link
Owner

I see there is something about this issue in Python official website too https://www.python.org/download/mac/tcltk/

If you can't find a workaround, I would suggest to replace Tkinter with another library. Although Tkinter is the most popular package for building an user interface in Python, there are many alternatives. (https://python.libhunt.com/tkinter-alternatives)

By looking at this Kivy tutorial I see the structure is very similar to Tkinker, so maybe it won't be very time consuming to adapt the code from the current implementation in Tkinter to something like Kivy.

@EvelynK14
Copy link
Author

ok i will update here once i got progress 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants