0

I am building my first app using quickly, pyGTK and python. I am confused how to add multiple pages to the same window and how to switch between multiple windows on click of button ?

In visual studio it is achieved very easie

1 Answer 1

0

Do you mean a gtk.Notebook?

To switch between pages, just use the notebook API in your button callback.

def on_button_clicked(button):
    # I want to go to page 2
    notebook.set_current_page(1)
    # Let's visit the next page
    notebook.next_page()
    # And back again
    notebook.prev_page()

http://developer.gnome.org/pygtk/stable/class-gtknotebook.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .