Python Forum
[Tkinter] newbie with python and tkinter
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] newbie with python and tkinter
#2
Hi pat

Try to rewrite your script:

a) using instead of from Tkinter import * -> import Tkinter as tk

b) without any global statement

c) the class name starting with a capital letter

d) forget the following construct:
while True:
    Button(root, text="run", command=p.creat).pack()
    Button(root, text="+++", command=p.plus).pack()
    Button(root, text="update", command=update).pack()
    Button(root, text="kill", command=p.kill).pack()
    Button(root, text="Quit", command=quit).pack()
    root.mainloop()
wuf ;-)
Reply


Messages In This Thread
newbie with python and tkinter - by pat - Jun-26-2018, 07:50 AM
RE: newbie with python and tkinter - by wuf - Jun-26-2018, 01:57 PM
RE: newbie with python and tkinter - by pat - Jun-26-2018, 02:38 PM
RE: newbie with python and tkinter - by wuf - Jun-26-2018, 03:44 PM
RE: newbie with python and tkinter - by pat - Jun-26-2018, 05:53 PM
RE: newbie with python and tkinter - by wuf - Jun-26-2018, 06:31 PM
RE: newbie with python and tkinter - by pat - Jun-26-2018, 07:11 PM
RE: newbie with python and tkinter - by wuf - Jun-26-2018, 07:18 PM
RE: newbie with python and tkinter - by pat - Jun-26-2018, 07:43 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Python Newbie MartyH 6 2,814 May-13-2020, 07:07 PM
Last Post: MartyH
  Newbie question with Tkinter Entry mariolopes 2 2,300 Oct-12-2019, 11:02 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020