Python Forum
Tkinter Gui Menu Addition Error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter Gui Menu Addition Error
#3
Apologies, it is not an actual error reported by tcl or Python in a terminal. It was an error that was hidden throughout dependency issues. My code
self.editMenu.add_cascade(label="Edit",menu=self.menu1)
was adding
self.menu1
to
self.editMenu
, which is the opposite ordering of what I wanted to accomplish with the
add_cascade
call.

After I switched the ordering to
self.menu1.add_cascade(label="Edit",menu=self.editMenu)
I was properly attributing the editMenu to menu1 and it showed without error. This fix was listed as one of the comments in the StackOverflow post.
Reply


Messages In This Thread
Tkinter Gui Menu Addition Error - by whisperquiet - Jan-04-2019, 07:13 PM
RE: Tkinter Gui Menu Addition Error - by Larz60+ - Jan-04-2019, 08:47 PM
RE: Tkinter Gui Menu Addition Error - by whisperquiet - Jan-04-2019, 09:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 5,660 Mar-10-2021, 04:21 PM
Last Post: Sir
  Tkinter menu font size -method to change tonycat 2 7,867 Oct-11-2020, 02:43 AM
Last Post: tonycat
  access subitem in tkinter Menu Phraya 2 2,982 Apr-04-2020, 12:11 PM
Last Post: Phraya
  Nesting menu buttons tkinter for python Mocap 1 2,732 Jul-18-2019, 11:46 AM
Last Post: metulburr
  [Tkinter] Tkinter optionmenu child menu position showing 0,0 thatguy14 2 4,657 Jun-15-2018, 10:42 AM
Last Post: thatguy14
  printing option menu variable in label in Tkinter SmokerX 1 6,635 Jan-18-2018, 07:36 PM
Last Post: SmokerX

Forum Jump:

User Panel Messages

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