Thank you very much for your help Now it's all clear
Thanks again and best regards Alberto >From: "Michael P. Reilly" <[EMAIL PROTECTED]> >Reply-To: "Michael P. Reilly" <[EMAIL PROTECTED]> >To: Alberto Troiano <[EMAIL PROTECTED]> >Subject: Re: [Tutor] Disable menubar >Date: Thu, 19 May 2005 19:00:11 -0400 > >On 5/19/05, Alberto Troiano <[EMAIL PROTECTED]> wrote: > > > > Hey everyone > > > > I've read about menubars and I decided to use the MenuBar from PMW >instead > > of Tkinter's > > > > The reason is that I couldn't find an example to make a menu with >cascade > > submenus and another cascade submenu inside the submenu and so on. > > > > Now I want to ask if somebody knows how to accomplish these with Menu >from > > TKinter? > > > > On the other hand, every button on the menu opens a Toplevel, but I want > > to > > restrict the Toplevels to one of each kind. I was thinking in disable >the > > menubutton but PMW only has disable_all and I only want to disable the > > opened Toplevel. Is there another way to accomplish this using Menu from > > TKinter or MenuBar from PMW or any other option? > > > > I'm sending a copy of the code of the menu (If you think you'll need all > > the > > code tell me because is kind of long and has many things that I haven't > > tried yet) > > > > Thanks in advanced > > > > Alberto > > > >Hi Alberto, > >I believe I recreated what you are trying to do (except the tip balloons >that come with PMW but those can be added with bind events). I've added >some >example code that, I hope, does everything your code was doing. I also made >the "Implantes" menu disabled to show you how that is handled. It can be >done on the fly as well. > >-Arcege >-- >There's so many different worlds, >So many different suns. >And we have just one world, >But we live in different ones. ><< alberto.py >> Gaucho _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor