DC panel and subpanel

python at cgcreator.com python at cgcreator.com
Thu Apr 13 10:27:00 EDT 2006


I’m trying to test a system of created one main panel that will house the
wx.DC that will pass that DC to all the attached items and then they will
draw on that DC. With this system you should be able to attach a sub-panel
to it along with any items to that sub-panel as well so that you can have
objects move around.

I basically trying to figure out a good way to build and manage complex
alpha based interfaces by drawing all the items to the main DC by getting
pos and size from other items that are attached to the panel.

I’ve got most of it working
  as you can see from the attached py script,
but some reason, that is a mystery to me, when you scale the window up.
the item2(“sub”) is getting blocked by a white box. I’m not sure where
this box is coming from and not really sure how to get rid of it.

I’m fairly new to python and even newer to wxPython, if I’m going around
my head to scratch my @$$ here please tell me
 if there is a simpler way
then please let me know


Thanks in advanced

-Keith
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test01.py
URL: <http://mail.python.org/pipermail/python-list/attachments/20060413/12e64888/attachment.ksh>


More information about the Python-list mailing list