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())
notebook.pack(fill = 'both', expand = 1, padx = 10, pady = 10)
page = notebook.add('Project')
page = notebook.add('Database')
b = Tkinter.Button(self.frame2, text='Refresh', width=25, underline=0, command=self.refreshDB)
b.pack(side="left", padx=2, pady=2)
def refreshDB(self):
Thanks for you help!
Dimitri
On 4/20/05, Stewart Midwinter <[EMAIL PROTECTED]> wrote:
Grayson's book 'Python & Tkinter Programming' says that there is a
raisecommand option for Notebook:
"Specifies a function to call when a new page is selected. the
function is called with a single argument, which is the name of the
selected page.
cheers,
S
On 4/20/05, Martin Franklin <[EMAIL PROTECTED]> wrote:
> dimitri pater wrote:
> > Hello,
> > does anybody knows how to automatically refresh the content of a page of
> > a notebook? I have been trying several things, no success.
--
Stewart Midwinter
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Skype: midtoad
--
_______________________________________________ Tkinter-discuss mailing list [email protected] http://mail.python.org/mailman/listinfo/tkinter-discuss
