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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.