Issue with docking wx.listctrl window

Hello All,

I’m trying to create a Frame with AuiManager. The code is attached.

Problem:

  • I want 2 windows to be docked in the frame. One is a text control and other is a list control.

  • The text control gets docked, but on trying to dock the list control, all the tabs dis-appear.

The tabs appear only when the list control window is kept floating.

In the attached code the list control window is kept floating. This can be docked

To see the issue with docking, comment line 33 and un-comment line 35 in the attached file and then try to execute, the issue would be clearly visible. On un-docking the window1, the tabs again appear…

Please let me the solution to this ASAP

Docking.py (1.97 KB)

Thanks a lot Robin.

I tried using self.log and instead of self.log.list. Code is attached. But this gives me a panel and listctrl in it. The extra blank space around the listctrl in window1 is something that I don’t need.

Please help.

Regards,

Tarun Devnani

Docking.py (2.14 KB)

···

On Jan 24, 2008 11:28 PM, Robin Dunn robin@alldunn.com wrote:

tarun wrote:

Hello All,

I’m trying to create a Frame with AuiManager. The code is attached.

Problem:

  • I want 2 windows to be docked in the frame. One is a text control and

other is a list control.

  • The text control gets docked, but on trying to dock the list control,
    all the tabs dis-appear.
    The tabs appear only when the list control window is kept floating.

In the attached code the list control window is kept floating. This can
be docked
To see the issue with docking, comment line 33 and un-comment line 35 in
the attached file and then try to execute, the issue would be clearly

visible. On un-docking the window1, the tabs again appear…

Please let me the solution to this ASAP

The main problem is that you are putting the listctrl on a panel, but

you are telling AUI to manage the listctrl, not the panel. If I
understand correctly then your other problems stem from that as well.
Try passing self.log to AddPane, instead of self.log.list.


Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

tarun wrote:

Thanks a lot Robin.
I tried using self.log and instead of self.log.list. *Code is attached.* But this gives me a panel and listctrl in it. The extra blank space around the listctrl in window1 is something that I don't need.

Use a sizer to manage the layout of the listctrl.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!