这不是我的全部代码,但是我发布了与我要执行的操作有关的内容:
from tkinter import *
from random import seed
from random import randint
class screens:
def __init__(self, title, size, bg):
self.title = title
self.size = size
self.bg = bg
def if_right4():
if square4["text"] == 'hi':
print('Yes')
else:
print("No")
def screen_one():
window1 = Tk()
global square1
global square2
global square3
global square4
window1.title(s1.title) # Sets window title
window1.geometry(s1.size) # Sets window size
window1.configure(bg=s1.bg) # Changes background
window1.iconbitmap(default='Images/favicon.ico') # Removes the 'feather'
window1.resizable(0,0)
# Button(object1, text="Enter&