0

I am facing an issue when running my code on Pycharm 2022.2.2 (Community edition) on my Mac. When running the code, the window that opens (using Tkinter) and has a black background so I can't see any of my text boxes etc. only the buttons. Even though I have set the background to Blue and the text boxes to white. When running this on Windows it works perfectly fine, is there a setting that I need to change on my Mac to fix this issue?

I have changed the background to blue (#0DF7F7) and my text boxes are white (#FFFFFF) and work perfectly fine on Windows but not on Mac.

No matter how I change the background colour it still seems to load a black background.

My python interpreter is Python 3.9 with 3 packages: pip 21.3.1, setuptools 60.2.0 and wheel 0.37.1.

from tkinter import *
import sqlite3

root = Tk()
root.assignment("Assignment - Customer Login Page")
root.geometry("1100x600")
root.configure(bg="#0DF7F7")
# create text boxes
id = Entry(root, width=40, fg="#FFFFFF")
id.grid(row=1, column=1, padx=20)
name = Entry(root, width=40, fg="#FFFFFF")
name.grid(row=2, column=1, padx=20)
email = Entry(root, width=40, fg="#FFFFFF")
email.grid(row=3, column=1, padx=20)
password = Entry(root, width=40, fg="#FFFFFF")
password.grid(row=4, column=1, padx=20)
Alexander L. Hayes
  • 3,892
  • 4
  • 13
  • 34
Aazza
  • 1
  • 2
  • https://stackoverflow.com/questions/71294521/tkinter-window-appears-black-upon-running-in-pycharm – 8349697 Dec 06 '22 at 11:08

0 Answers0