From: Greg M. <gr...@in...> - 2003-10-21 17:20:16
|
Good question. Here is some code that might do the trick. Call setwidgetstate(notebook, 'disabled') when you don't want the user playing with the notebook, and then call setwidgetstate(notebook, 'normal') when they can. ================================================================== # Set the state of <widget> to <state> and then recursively do the # same to all its children. # <state> should be 'normal' or 'disabled'. # Should work for most widget trees. def setwidgetstate(widget, state): try: widget.configure(state = state) except: pass for child in widget.winfo_children(): setwidgetstate(child, state) ================================================================== Greg On Mon 20 Oct 2003 at 09:47:50AM -0700, Joshua Gerth wrote: > Hello, > > Does anyone have any ideas on how to disable a Pmw.NoteBook. I want to > force the user to enter some other information first and then only after a > quick check do I want to allow them to use the tabs. I suppose I could > 'hide' the NoteBook, but I really don't like the idea of things suddenly > appearing. I would much rather it was there and just disabled. > > Thanks, > Joshua > > ===== > Consumerism is self-expression for the uncreative. > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo > The Event For Linux Datacenter Solutions & Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > Pmw-general mailing list > Pmw...@li... > https://lists.sourceforge.net/lists/listinfo/pmw-general -- Greg McFarlane Really Good Software Pty Ltd Sydney Australia gr...@in... |