Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tkinter
#2
You could try this:
def show_number(x):
   .....code ...

button01 = Button(root,text='1',font='ARIAL',command=lambda: show_number(1))
button02 = etc...
Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
tkinter - by kiko - Aug-30-2020, 02:29 PM
RE: tkinter - by DPaul - Aug-30-2020, 02:57 PM
RE: tkinter - by ndc85430 - Aug-30-2020, 03:05 PM
RE: tkinter - by kiko - Aug-31-2020, 10:09 AM

Forum Jump:

User Panel Messages

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