Rename notebook tab/page

I thought I had seen a demo that had a notebook with tabs, and if you
right clicked on a tab it would bring up a menu that would allow you
to rename it. Does this feature exist or it just wishful thinking on
my part?

If the feature doesn't exist what is the recommended way of having a
user rename a tab?

I'm not finding anything obvious, but the method you want is
SetPageText(). The Flatnotebook has a cool method SetRightClickMenu()
that you can use. Just create a "Rename" menu item that will open a
little dialog for the user to enter the new name into.

···

On Jan 11, 1:13 pm, beissemj <mjbeis...@gmail.com> wrote:

I thought I had seen a demo that had a notebook with tabs, and if you
right clicked on a tab it would bring up a menu that would allow you
to rename it. Does this feature exist or it just wishful thinking on
my part?

If the feature doesn't exist what is the recommended way of having a
user rename a tab?

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/

Ah, that will work. Thanx for the quick response too. =)

···

On Jan 11, 2:25 pm, Mike Driscoll <kyoso...@gmail.com> wrote:

On Jan 11, 1:13 pm, beissemj <mjbeis...@gmail.com> wrote:

> I thought I had seen a demo that had a notebook with tabs, and if you
> right clicked on a tab it would bring up a menu that would allow you
> to rename it. Does this feature exist or it just wishful thinking on
> my part?

> If the feature doesn't exist what is the recommended way of having a
> user rename a tab?

I'm not finding anything obvious, but the method you want is
SetPageText(). The Flatnotebook has a cool method SetRightClickMenu()
that you can use. Just create a "Rename" menu item that will open a
little dialog for the user to enter the new name into.

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org

PyCon 2010 Atlanta Feb 19-21 http://us.pycon.org/