Hi,

This is a well known bug I reported to Riaan several weeks ago.

I've event sent him this beginning of a workaround:

Views/Designer.py, line 1512, method DesignerNamespace.__getattr__ :
=    def __getattr__(self, name):
=        designer = self.__dict__['_designer']
=        if designer.objects.has_key(name):
-            return designer.objects[name][1]
+            obj = designer.objects[name]
+            if isinstance(obj[1], wx._core._wxPyDeadObject):
+                obj[1] = obj[0].designTimeControl(None, None)
+            return obj[1]
=        elif designer.dataView.objects.has
_key(name):
= ...

This is far from perfect but it helps a bit.

The origin of that problem is a behavior change in wxPython between the 2.6 and the 2.7 series.
While recreating the view (which happens quite often at design time), the designer deletes and reinstanciates all its sizers objects but keeps track of the controls instances.
Until wxPython 2.6.x, deleting a StaticBoxSizer had no impact on the handled StaticBox. But since 2.7, deleting a StaticBoxSizer also deletes the StaticBox C++ reference, which Boa designer tracks as a control and so doesn't reinstanciate at design time.
Each time the designer now tries to recreate a view that contains a StaticBoxSizer it crashes.

Olivier

2007/2/23, Werner F. Bruhin <werner.bruhin@free.fr >:
Hi,

jupan ghe wrote:
> Dear all,
>
> I;m trying to use a wxStaticBoxSizer and then on top of it or insede of
> it I'm trying to add some extra sizers or some other objects. BUt when I
> click on wxStaticBoxSizer I get the small window, and then when trying
> to add a sizer or something in the list Boa crashes alltogether, I could
> reproduce the same thing many times. Could you please have a look at the
> problem and tell me if you have any solution.
Just did a little test with:
# Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]
# wxPython 2.6.3.3, Boa Constructor 0.5.2

And it worked for me.

1. create a wxframe
2. drop a panel onto it
3. drop a staticbox onto the panel
4. drop a staticboxsizer onto the panel and select 3 as its staticbox


Werner
>
>
> Thank you very much in advance,
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Boa-constructor-users mailing list
> Boa-constructor-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/boa-constructor-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users