Hi Reid:
I think your problem probably doesn't have anything to do with using a
BoxContainer. Errors about C++ objects being deleted usually are caused
when the C++ objects that are wrapped by Python objects get deleted
unexpectedly. Sometimes this can be a side effect of
rendering/unrendering, or by wxPython thinking it owns the object
instead of you. I'm used to tracking down these kinds of problems, so
if you have trouble tracking it down I'd be happy to help.
John
Reid Ellis wrote:
I have a patch on bug 4974 <https://bugzilla.osafoundation.org/show_bug.cgi?id=4974>
that implements the new markup bar:
You can try this Mac binary with this patch already applied:
I posted about it to my Chandler blog too:
The patch has some issues and I was hoping I could get a few
ideas here. In place of MenusAndToolbars.Toolbar I am
using ContainerBlocks.BoxContainer, but I am wondering if that is the
correct class to use. I just want an empty (and transparent) container
to hold the buttons.
Here are some symptoms of this markup bar:
When the buttons are clicked, they all disappear and -- after a
pause in which errors about C++ objects being gone are printed out --
they get redrawnin the correct state. I wonder if I should override OnLeftUp()
to check the C++ object to see if it's still there?
The background of the bar is white. This has to
be ContainerBlocks.BoxContainer drawing something, right?
Any advice gratefully received. I'd like to check this in, but I
just don't think it's ready yet. :-/
Reid
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev
|
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev