Draggable Tabs

How do you create draggable tabs in wxPython? By this, I mean a setup where, for example, if you have a notebook with several tabs, you can drag one of the tabs off to another part of the window and its content will appear there, so you can see both tabs at the same time. (This is essentially the same thing you can do when you drag tabs in the Eclipse GUI.)

-Alex Mont

use wx.aui.AuiNotebook instead of the basic wx.Notebook.

···

On 1/12/07, Alexander Mont alexmont1@comcast.net wrote:

How do you create draggable tabs in wxPython? By this, I mean a setup where, for example, if you have a notebook with several tabs, you can drag one of the tabs off to another part of the window and its content will appear there, so you can see both tabs at the same time. (This is essentially the same thing you can do when you drag tabs in the Eclipse GUI.)

-Alex Mont

Alex,

The AUINotebook does what you want (and its pretty easy to use too - handles the tab groups and everything automatically)

http://wxpython.wxcommunity.com/docs/api/wx.aui.AuiNotebook-class.html

Look in the ‘recent additions/updates’ section of the wx 2.8 demo.

Andrew

···

-----Original Message-----
From: Alexander Mont [mailto:alexmont1@comcast.net]
Sent: Thursday, January 11, 2007 5:45 PM
To: wxpython-users@lists.wxwidgets.org
Subject:
[wxPython-users] Draggable Tabs

How do you create draggable tabs in wxPython? By this, I mean a setup where, for example, if you have a notebook with several tabs, you can drag one of the tabs off to another part of the window and its content will appear there, so you can see both tabs at the same time. (This is essentially the same thing you can do when you drag tabs in the Eclipse GUI.)

-Alex Mont