Notebooks:
The first call is to create a new notebook widget.
                                                                                                                                         
 notebook = gtk.Notebook()
                                                                                                                                         
Once the notebook has been created, there are a number of methods that
operate on the notebook widget. .
                                                                                                                                         
The first one we will look at is how to position the page indicators. These
page indicators or "tabs" as they are referred to, can be positioned in
four ways: top, bottom, left, or right.
                                                                                                                                         
 notebook.set_tab_pos(pos)
                                                                                                                                         
pos will be one of the following, which are pretty self explanatory:
                                                                                                                                         
  POS_LEFT
  POS_RIGHT
  POS_TOP
  POS_BOTTOM
                                                                                                                                         
POS_TOP is the default.
                                                                                                                                         
Next we will look at how to add pages to the notebook. There are three ways
to add pages to a NoteBook. Let's look at the first two together as they
are quite similar.
                                                                                                                                         
 notebook.append_page(child, tab_label)
                                                                                                                                         
    notebook.prepend_page(child, tab_label)
                                                                                                                                         
These methods add pages to the notebook by inserting them from the back of
the notebook (append), or the front of the notebook (prepend). child is
thewidget that is placed within the notebook page, and tab_label is the
label
for the page being added. The child widget must be created separately, and
is typically a set of options setup within one of the other container
widgets, such as a table.
                                                                                                                                         
The final method for adding a page to the notebook contains all of the
properties of the previous two, but it allows us to specify what position
we want the page to be in the notebook.
                                                                                                                                         
 notebook.insert_page(child, tab_label, position)
                                                                                                                                         
The parameters are the same as append() and prepend() except it contains an
extra parameter, position. This parameter is used to specify what place
this page will be inserted into; the first page having position zero.
                                                                                                                                         
Now that we know how to add a page, lets see how we can remove a page from
the notebook.
                                                                                                                                         
 notebook.remove_page(page_num)
                                                                                                                                         
This method takes the page specified by page_num and removes it from the
widget pointed to by notebook.
                                                                                                                                         
To find out what the current page is in a notebook we can use the method:
                                                                                                                                         
 page = notebook.get_current_page()
                                                                                                                                         
These next two methods are simple calls to move the notebook page forward
or backward. we can simply provide the respective method call with the
notebook
widget we wish to operate on.
                                                                                                                                         
 notebook.next_page()
                                                                                                                                         
    notebook.prev_page()