@@ -334,11 +334,11 @@ def submit():
334
334
335
335
336
336
# Button
337
- def submit ():
337
+ def submit1 ():
338
338
for i in user_info :
339
339
print (f"my { i } is { user_info [i ].get ()} ." )
340
340
341
- button_entry = ttk .Button (win ,text = 'Submit' ,command = submit )
341
+ button_entry = ttk .Button (win ,text = 'Submit' ,command = submit1 )
342
342
button_entry .grid (row = count + 1 ,columnspan = 3 , padx = 40 , pady = 10 )
343
343
344
344
@@ -393,11 +393,11 @@ def submit():
393
393
394
394
395
395
# Button
396
- def submit ():
396
+ def submit2 ():
397
397
for i in user_info :
398
398
print (f"my { i } is { user_info [i ].get ()} ." )
399
399
400
- button_entry = ttk .Button (lable_frame ,text = 'Submit' ,command = submit )
400
+ button_entry = ttk .Button (lable_frame ,text = 'Submit' ,command = submit2 )
401
401
button_entry .grid (row = count + 1 ,columnspan = 3 )
402
402
403
403
@@ -628,7 +628,7 @@ def func():
628
628
629
629
# ********** Button **************
630
630
631
- def action ():
631
+ def action1 ():
632
632
# m_box.showinfo('title','content of this message box !!')
633
633
# m_box.showerror('title','content of this message box !!!')
634
634
# m_box.showwarning('title','content of this message box !!!')
@@ -651,32 +651,9 @@ def action():
651
651
m_box .showwarning ("warning" ,"you are not 18, visit this content on your own risk" )
652
652
653
653
654
- sub_btn = ttk .Button (win ,text = "Submit" , command = action )
654
+ sub_btn = ttk .Button (win ,text = "Submit" , command = action1 )
655
655
sub_btn .grid (row = 1 ,columnspan = 3 ,padx = 40 )
656
656
657
657
658
658
659
- win .mainloop ()
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
-
677
-
678
-
679
-
680
-
681
-
682
-
659
+ win .mainloop ()
0 commit comments