Exchanging Panels

46 views
Skip to first unread message

Thiago Felipe

unread,
Jul 18, 2015, 8:37:56 AM7/18/15
to wxpytho...@googlegroups.com
Hello, is there a way to exchange two panels in a splitted window by dragging them?

i appreciate the attention

David Woods

unread,
Jul 22, 2015, 11:08:28 AM7/22/15
to wxpytho...@googlegroups.com

> Hello, is there a way to exchange two panels in a splitted window by
> dragging them?
>
> i appreciate the attention

Have you looked at the SplitterWindow in the wxPython Demo? Is that
what you mean?

David

tjohnson

unread,
Jul 22, 2015, 11:35:49 AM7/22/15
to wxPython-users
It sounds like the wx.aui module (or the alternative wx.lib.agw.aui) may be what you're looking for. wxAUI (Advanced User Interface) allows you to create as many panes as you want, and they can be dragged around in all sorts of different docking configurations.

Thiago Felipe

unread,
Jul 23, 2015, 7:00:57 AM7/23/15
to wxPython-users, tran...@gmail.com
Hello David, yes i've tested this demo but it only can drag the sash between the panels, what i mean is clicking on some panel of this example and drag it to the position where the other panel is and then exchange them when i drop it

Thiago Felipe

unread,
Jul 23, 2015, 7:07:34 AM7/23/15
to wxPython-users, tandrew...@outlook.com
Hello tjohnson, thanks for the answer i'm gonna check this module.

Werner

unread,
Jul 23, 2015, 8:11:00 AM7/23/15
to wxpytho...@googlegroups.com
On 7/23/2015 13:00, Thiago Felipe wrote:
> Hello David, yes i've tested this demo but it only can drag the sash
> between the panels, what i mean is clicking on some panel of this
> example and drag it to the position where the other panel is and then
> exchange them when i drop it
I think the wx.lib.agw.aui stuff might be what you are looking for,
check it out in the wxPython demo.

Werner

Thiago Felipe

unread,
Jul 24, 2015, 7:09:29 AM7/24/15
to wxPython-users, wern...@gmx.ch
Hello werner, this module is pretty interesting. Is possible to drag the panels without letting them go out of the application window?

Werner

unread,
Jul 24, 2015, 8:07:08 AM7/24/15
to wxPython-users
On 7/24/2015 13:09, Thiago Felipe wrote:
> Hello werner, this module is pretty interesting. Is possible to drag the
> panels without letting them go out of the application window?
See AuiPaneInfo.Floatable

http://wxpython.org/Phoenix/docs/html/lib.agw.aui.framemanager.AuiPaneInfo.html#lib.agw.aui.framemanager.AuiPaneInfo

Werner

Thiago Felipe

unread,
Jul 24, 2015, 9:47:11 AM7/24/15
to wxPython-users, wern...@gmx.ch
Thanks
Reply all
Reply to author
Forward
0 new messages