[Tkinter-discuss] Re: tkinter pmw notebook

dimitri pater dimitri.pater at gmail.com
Thu Apr 21 00:25:44 CEST 2005


Hello!

Thank you all very much for your help. Everything works fine now, I just 
needed that extra little "push".

Thanks again, I am new to this list and I am glad I joined it!

Dimitri

On 4/21/05, Michael Lange <klappnase at web.de> wrote:
> 
> On Wed, 20 Apr 2005 20:30:46 +0200
> dimitri pater <dimitri.pater at gmail.com> wrote:
> 
> Hello Dimitri,
> 
> > Hello,
> > yes thanks, I have tried the raisecommand, but it doesn't seem to work 
> and I
> > can't find any clear examples.
> > I am not sure what "the function is called with a single argument, which 
> is
> > the name of the selected page." means exactly...
> >
> > This is what I do (wrong):
> > class Notebook:
> > def __init__(self, parent):
> >
> > notebook = Pmw.NoteBook(parent, raisecommand=self.refreshDB())
> ^^
> The above line has an error - remove the parentheses.
> The name of the selected page, which will be passed as argument to the 
> raisecommand callback
> is the name of the page as you defined in the NoteBook.add() method, i.e. 
> in your example
> 'Project' or 'Database' .
> If I understood you correctly, you might do something like this:
> 
> def refreshDB(self, pagename):
> if pagename == 'Database':
> # stuff to refresh the database contents here
> 
> I hope this helps
> 
> Michael
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
> 



-- 
Please visit dimitri's website: www.serpia.com <http://www.serpia.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tkinter-discuss/attachments/20050421/38ef73ec/attachment.htm


More information about the Tkinter-discuss mailing list