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
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityDo 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