Python Forum
Continue command in python tkinter?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Continue command in python tkinter?
#3
So I dont want to make code like this:
def A():
root = Button(root, text = "BOOM", command = B())

def B():
  #stuff here
For me its better like this:
def A():
  root = Button(root, text = "BOOM", command = #Goes straight to hello world)
  print("Hello world!")
  #rest of the code
  #rest of the code
Reply


Messages In This Thread
Continue command in python tkinter? - by MLGpotato - Feb-24-2021, 04:37 PM
RE: Continue command in python tkinter? - by MLGpotato - Feb-24-2021, 05:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter.TclError: can't invoke "canvas" command cybertooth 8 6,171 Feb-23-2023, 06:58 PM
Last Post: deanhystad
  [Tkinter] button command tkinter Heyjoe 6 5,354 Jul-30-2020, 07:06 PM
Last Post: deanhystad
  tkinter button not accessing the command when clicked jhf2 1 3,646 Nov-23-2019, 10:17 PM
Last Post: DT2000
  [Tkinter] Tkinter newly created button does not execute command ChipsSlave 7 6,359 Jul-25-2018, 01:01 AM
Last Post: JUANCARLOS

Forum Jump:

User Panel Messages

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