agw.AUI: dragging tabs out and into a AUINotebook

Hi,

In the demo, I see that it is possible to drag a pane out of an
AUINotebook, after checking Notebook->Allow Floating Tab. However, I
can't seem to drop panes into the AUINotebook. The only way to get the
pane back into the AUINotebook is by double clicking the pane header.
Am I missing something or is double clicking the only way?

Thanks, Frank

Hi Frank,

2009/12/7 Frank Niessink:

Hi,

In the demo, I see that it is possible to drag a pane out of an
AUINotebook, after checking Notebook->Allow Floating Tab. However, I
can't seem to drop panes into the AUINotebook. The only way to get the
pane back into the AUINotebook is by double clicking the pane header.
Am I missing something or is double clicking the only way?

Well, the other way is simply to close the floating pane using the
close button (assuming a close button is there). If you have another
suggestion on how to improve tab docking in AuiNotebooks (or an
alternative docking behaviour) please let me know.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Hi andrea,

Well, the other way is simply to close the floating pane using the
close button (assuming a close button is there). If you have another
suggestion on how to improve tab docking in AuiNotebooks (or an
alternative docking behaviour) please let me know.

I wasn't clear enough, sorry. If I drag one of the panes out of the
notebook and drag it over one of the other tab containers drop hints
will appear. AUI shows nine drag hints, two for each of
left/top/right/bottom and one for dropping the pane onto the pane
under the mouse. If I drop the pane onto that central drop hint, a new
notebook is created [Drop_on_secondary_pane.png]. This is all working
as expected, except for dropping a pane from a non-center notebook (or
a floating pane) onto the center pane/notebook. In that case the
central dropping hint is not shown [Drop_on_primary_pane.png]. I don't
understand why that central dropping hint is not being shown.

Thanks, Frank

···

2009/12/8 Andrea Gavana <andrea.gavana@gmail.com>:

Hi Frank,

2009/12/8 Frank Niessink:

Hi andrea,

Well, the other way is simply to close the floating pane using the
close button (assuming a close button is there). If you have another
suggestion on how to improve tab docking in AuiNotebooks (or an
alternative docking behaviour) please let me know.

I wasn't clear enough, sorry. If I drag one of the panes out of the
notebook and drag it over one of the other tab containers drop hints
will appear. AUI shows nine drag hints, two for each of
left/top/right/bottom and one for dropping the pane onto the pane
under the mouse. If I drop the pane onto that central drop hint, a new
notebook is created [Drop_on_secondary_pane.png]. This is all working
as expected, except for dropping a pane from a non-center notebook (or
a floating pane) onto the center pane/notebook. In that case the
central dropping hint is not shown [Drop_on_primary_pane.png]. I don't
understand why that central dropping hint is not being shown.

The original implementation of wx.aui was centered on the fact that we
shouldn't mess with a CenterPane. Unfortunately, this limitation has
remained in the Python version of AUI. The short story is, you can't
drop another pane onto the center pane to create an automatic
AuiNotebook, and this is what the docking guides are telling us.

I would like to remove this limitation (and many other, actually)
sooner or later. I will gladly accept any patch that makes this thing
work, although at some point in the future (when I get 40 hours per
day maybe) I may look into this.

Sorry about that.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

2009/12/8 Andrea Gavana <andrea.gavana@gmail.com>:

Hi Andrea,

The original implementation of wx.aui was centered on the fact that we
shouldn't mess with a CenterPane. Unfortunately, this limitation has
remained in the Python version of AUI. The short story is, you can't
drop another pane onto the center pane to create an automatic
AuiNotebook, and this is what the docking guides are telling us.

But, there is no need to create an automatic AuiNotebook since there
is already a AuiNotebook in the center pane. Moreover, double clicking
the header of the floating pane that originated from the center pane
redocks it into the center pane (i.e. the AuiNotebook) so the behavior
is already there.

I would like to remove this limitation (and many other, actually)
sooner or later. I will gladly accept any patch that makes this thing
work, although at some point in the future (when I get 40 hours per
day maybe) I may look into this.

I'll see whether I can make a simple patch.

Cheers, Frank