#98 cut'n'paste notebook problems

Development Version
closed
nobody
5
2012-10-24
2006-05-28
Petr Hlavka
No

wxGlade doesn't recreate notebook widget properly
after paste action or even crash when there are
treectrls on notebook tabs.

Linux, Python 2.4.1 and wxPython 2.6.1.0
Win XP, Python 2.3.5 and wxPython 2.6.3.2

wxGlade 0.4, 0.4.1 and cvs preview 20060513

How to reproduce:

Open test.wxg:
1. cut notebook_1
2. paste it to the same place
3. there is only one notebook tab (should be two)

Open test2.wxg (may be corrupted):
1. cut sizer_1
2. paste in to the same place
3. works properly, but prints some errors:

(python:14728): Gdk-CRITICAL **: gdk_window_invalidate_
rect: assertion `window != NULL' failed

Open crash.wxg (has some treectrls on tabs):
1. cut notebook_1
2. paste it to the free slot above original position
3. wxglade crashes

The first and third problem can be fixed by patch
enclosed in the zip file, but I'm not sure if it does
the right things...

Discussion

  • Petr Hlavka
    Petr Hlavka
    2006-05-28

    Example wxg files and xml_parse.py patch

     
    Attachments