Python Forum
Creating a frame with 4 command buttons
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating a frame with 4 command buttons
#5
Thanks all.

I have changed the code and it works.

I created this code after watching tutorials on classes and Tkinter.

There is still one thing that makes absolutely no sense to me. The second to the last line of code.

b=Main(root)
Why is Main(root) assigned to the variable? What does this line of code mean? Why does my code not work without this line of code?
Reply


Messages In This Thread
Creating a frame with 4 command buttons - by Heyjoe - Aug-20-2020, 02:40 AM
RE: Creating a frame with 4 command buttons - by Heyjoe - Aug-21-2020, 12:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Programmatically creating buttons that remember their positions Clunk_Head 6 3,356 Jun-22-2023, 02:51 PM
Last Post: deanhystad
  [Tkinter] Command button, then more command buttons Heyjoe 4 4,258 Aug-08-2020, 11:28 AM
Last Post: Yoriz
  [Tkinter] Creation of Buttons with Shared Command Inside Class MulliganAgain 1 2,477 Jul-08-2020, 06:22 PM
Last Post: Yoriz
  [Tkinter] Scrollbar, Frame and size of Frame Maksim 2 11,425 Sep-30-2019, 07:30 AM
Last Post: Maksim
  [Tkinter] How to add an argument to a buttons command call petterg 2 3,909 Jun-20-2019, 09:05 PM
Last Post: petterg
  [Tkinter] create and insert a new frame on top of another frame atlass218 4 15,373 Apr-18-2019, 05:36 PM
Last Post: atlass218
  [Tkinter] Frame size only works if frame is empty(Solved) Tuck12173 7 8,440 Jan-29-2018, 10:44 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