OK - it makes sense to avoid sizers. As my main form (imdata.cdxml attached) uses sizers, I assume I will have to build a new form. I did this with CD and created form (imapin.cdxml attached) without sizers and one panel as when I ran with amended main program (attached - maintest.py) it ran ok but with new form not activated.
I went back to add method code to add marker and CD failed to start : > File "/home/iain/workspace/ide/ClassDesigner.py", line 4340, in <module> > clsDes = ClassDesigner(f) > File "/home/iain/workspace/ide/ClassDesigner.py", line 237, in __init__ > frm = self.openClass(clsFile) > File "/home/iain/workspace/ide/ClassDesigner.py", line 702, in openClass > obj = self.recreateChildren(frm.mainPanel, kids, None, False) > File "/home/iain/workspace/ide/ClassDesigner.py", line 1207, in > recreateChildren > ret = self._recreateControl() > File "/home/iain/workspace/ide/ClassDesigner.py", line 938, in > _recreateControl > skipUpdate=True, attProperties=atts) > File "/home/iain/workspace/ide/ClassDesigner.py", line 2740, in > addNewControl > currItemProps = sz.getItemProps(szit) > AttributeError: 'dSizer' object has no attribute 'getItemProps' > $12: what I am doing wrong ? On 20/11/10 21:14, Ed Leafe wrote: > > Yes, but you'll have to use absolute positioning (i.e., not sizers). > The pseudo-code would look something like this: > > map_img = dabo.ui.dImage(self, Size=(256, 256), Position=(0, 0), > Picture="map.png") > marker_img = dabo.ui.dImage(self, Size=(4, 4), Position=(123, 77), > Picture="marker.png") > # For good measure; may not be needed... > marker_img.bringToFront() > > > > -- Ed Leafe > > > > --- StripMime Report -- processed MIME parts --- multipart/mixed text/plain (text body -- kept) text/xml text/x-python text/xml text/x-python --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
