質問編集履歴

1

ああああ

2022/03/03 13:00

投稿

awgfawg
awgfawg

スコア4

test CHANGED
File without changes
test CHANGED
@@ -32,3 +32,36 @@
32
32
 
33
33
  root.mainloop()
34
34
  ```
35
+
36
+
37
+
38
+ 質問返信1 追加コード
39
+ ```ここに言語を入力
40
+ import tkinter as tk
41
+ import tkinter
42
+ import time
43
+
44
+
45
+
46
+ def test():
47
+ label1 = tkinter.Label(
48
+ root, text="Text on the screen", font=('Times New Roman', '80'),
49
+ fg="black", bg="white")
50
+ label1.place(x = 0, y = 0)
51
+
52
+ time.sleep(2)
53
+ print(label1.winfo_ismapped())
54
+ label1.pack_forget()
55
+ time.sleep(2)
56
+
57
+
58
+ if __name__ == '__main__':
59
+ root =tk.Tk()
60
+
61
+ def RegularCheck():
62
+ test()
63
+ root.after(1000, RegularCheck)
64
+
65
+ RegularCheck()
66
+ root.mainloop()
67
+ ```