python 2.7: Getting Segmentation fault when setting Menu in GUI programming with Tkinter python 2.7: Getting Segmentation fault when setting Menu in GUI programming with Tkinter tkinter tkinter

python 2.7: Getting Segmentation fault when setting Menu in GUI programming with Tkinter


The segfault is caused by:

helpmenu.add_cascade(label='Help',menu=helpmenu)

after a quick look at the docs, it makes perfect sense why that would give you problems. Add cascade "adds a hierarchical menu item". You are adding helpmenu as a menu within helpmenu.

I believe that what you mean here is

menubar.add_cascade(label="Help", menu=helpmenu)