New Instance for Pmw.Notebook()?

jakegren at home.com jakegren at home.com
Mon Feb 5 21:55:37 EST 2001


I'm having difficulty creating a Pmw.Notebook() outside of the root
window. I would like to click on a menu item and have a new window
created with the Pmw.Notebook(). This is what I have:

Button4.menu.add_command(label='Properties...',command=TestClick)
...
def TestClick():
    notebook=Pmw.NoteBook()
    notebook.pack()
    page=notebook.add('My Tab')
    entry=Entry(page,width=20)
    entry.pack()

This creates a Pmw.Notebook() immediately below the main menu. I know
I have to create a class to do what I want (create a new instance), but
I'm not sure how to start... Any suggestions?
--
Jake




More information about the Python-list mailing list