これは私のコードです:
import sys
from tkinter import *
def forget_page1():
widgets = [mLabel1, button]
for widget in widgets:
widget.place_forget ()
################################
mGui = Tk ()
mGui.geometry("600x600+545+170")
mGui.title("MyMathDictionary")
mLabel1 = Label (text = "Welcome to MyMathDictionary. Press Next to continue.",
fg = "blue",bg = "white")
mLabel1.place (x= 150,y = 200)
button = Button (text = "Next", command = forget_page1)
button.place(x = 275,y = 230)
mGui.mainloop()
あなたが私のコードを理解していれば....ウェルカムメッセージのあるページがあり、ユーザーは「次へ」をクリックして次のページに進む必要がplace_forget ()
あります。しかし、以前のウィジェットが忘れられている新しいページに新しいボタンまたはラベルを配置するコードをどこに配置すればよいですか???? 私は明確だったと思いますか?