[wxPython-users] ANN: FlatNotebook Control For wxPython ;-)
Nitro
nitro at dr-code.org
Mon Oct 9 11:11:47 PDT 2006
Am 04.10.2006, 00:44 Uhr, schrieb Andrea Gavana <andrea.gavana at gmail.com>:
>> 1. If I drag a tab to change the tab order in a peculiar notebook, I
>> always have to drag it straight onto another tab. For example suppose
>> there's Tab1 Tab2 and I want to make it Tab2 Tab1, I could either drag
>> Tab2 on Tab1 or vice versa. It would be nice if you could extend this so
>> that I could drag Tab1 somewhere right of Tab2 (not exactly onto Tab2)
>> to
>> move it to the last position. Or to drag Tab2 before Tab1 (to the left
>> of
>> Tab1, very close to the screen border).
>
> Try the latest version I just uploaded, it should do what you ask :-D
Indeed, it works :) Thank you!
>
>> 2. Have you thought about combining this with wx.aui? I think VC does
>> the
>> same. Basically you can add new tabs to a notebook by dragging other
>> tabs/windows onto it. Is it perhaps already possible by making a bunch
>> of
>> wx.aui panes, all containing FlatNotebooks? This would definately be one
>> of the coolest things in wxpython and something I really appreciate. It
>> would allow me to make my application work exactly like I wanted it to
>> work.
>
> Well, I can not integrate directly wxAUI with FlatNotebook, but try
> the attached file and let me know if you like it :-D . It requires
> wxPython 2.7 latest pre-release and latest FlatNotebook, which you can
> get from:
>
> http://xoomer.alice.it/infinity77/eng/freeware.html#flatnotebook
This works. It's not 100% like vs yet, because that would require direct
integration of wx.aui and FlatNotebook (you would have to add something so
that you can drag a pane right into a notebook or drag a page of a
notebook and dock it as a pane).
>> Just for your information, I am using a lot of the controls you wrote by
>> now. They're extremely useful for designing flexible, powerful and at
>> the
>> same time even good looking applications. I can't think of any more
>> controls that you could write by now, honestly. Your work is basically
>> the
>> icing on the (great) cake that's called wxPython for me. Thanks a lot!
>
> Thanks for your comments, you are too kind :-D. It's a joy for me
> coding in wxPython after all that years at work using Matlab GUIs
> (Matlab (!!!!)).
Matlab... HARHARHARHAHR
I found one more "bug". Not sure if I can call it one. If you have two
pages with an assigned icon in two different notebooks and then drag the
pane from one book to another, the page's icon changes to that of the
other notebook. I guess this happens because you save the index into the
imagelist along with the page. Now when you change pages, you look up the
index in the wrong imagelist. I guess you could either copy that image of
the image list or refer to the old imagelist instead.
-Matthias
More information about the wxpython-users
mailing list