computervisioneng / face-attendance-system

MIT License
151 stars 94 forks source link

Tk window error #2

Open EvelynK14 opened 1 year ago

EvelynK14 commented 1 year ago

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

computervisioneng commented 1 year ago

what Python version are you using?

EvelynK14 commented 1 year ago

python 3.9

computervisioneng commented 1 year ago

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 commented 1 year ago

sill having a same problem 😭

computervisioneng commented 1 year ago

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 commented 1 year ago

ok i will update here once i got progress 😢