Got it!
Because 'menu' is a config option of the top level window's config but not
of 'Frame', It's just a matter of calling self.master.config(menu=menu)
Thanks
j.
>From: Kent Johnson <[EMAIL PROTECTED]>
>To: Python Tutor
>Subject: Re: [Tutor] T
Ah, sorry. Here is the definition of fCanvas:
class LogAnalyzerGUI(Frame):
def __init__(self, parent=0):
Frame.__init__(self, parent)
self.type = 2
self.terms = 0
self.master.title('XML Analyzer')
self.buildUI()
def buildUI(self):
fCanvas = Frame(self)
Label(fCanva
Jorge Louis De Castro wrote:
> Hello,
>
> I'm having this issue with Tkinter. I have a frame with all my buttons,
> checkboxes et al, and all is working fine. I want to add menus and added the
> following to my frame (fCanvas) code:
>
> # create a toplevel menu
> menu = Menu(fCanvas)
>
Hello,
I'm having this issue with Tkinter. I have a frame with all my buttons,
checkboxes et al, and all is working fine. I want to add menus and added the
following to my frame (fCanvas) code:
# create a toplevel menu
menu = Menu(fCanvas)
fCanvas.config(menu=menu)
# create a pu