Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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