I'm new to python, I hope someone can help me with this problem. i'm using a mac M1 with OS Monterey 12.5.1. I'm using Python Version Python 3.8.9 (default, Apr 13 2022, 08:48:06) in Visual studio code. (I also tried to run the code in Pycharm and it generates the same black window error.
I am running a simple calculator code in Python, but when I run the buttons come out correctly, but the rest is always black, as attached in the image. Try to download the code directly from Github, run it and it comes out the same. I tried it on another mac with an older operating system and the same thing happens. I run the code on Windows and it works without problem. error generated when executing graphic interface with the library used code calculator I tried to run other projects in tkinter and they all come out in a black window.