when attempting to place a StaticBoxSizer on a dialog window I'm getting the above error.
10:09:02 AM: Traceback (most recent call last):
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Views\Designer.py", line 1597, in OnControlSelect dsgn.selectControlByPos(ctrl, pos, event.ShiftDown())
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Views\Designer.py", line 874, in selectControlByPos ctrlName = view.OnSelectOrAdd()
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Views\DataView.py", line 208, in OnSelectOrAdd objName = self.newObject(CtrlClass, CtrlCompanion)
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Views\InspectableViews.py", line 684, in newObject self.addObject(objName, companion, companion.designTimeObject(), '')
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 587, in designTimeObject return ControlLinkedSizerDTC.designTimeObject(self, args)
10:09:02 AM: File "c:\Python27\Lib\site-packages\boa-constructor\Companions\SizerCompanions.py", line 513, in designTimeObject raise Exception, _('No %s controls available')%linkClassName
10:09:02 AM: Exception: No Static controls available
what have i done wrong now???
A StaticBoxSizer needs a static box, so you need to drop a wx.StaticBox first onto your dialog and then the SBSizer.
Boa shoudn't error that hard on this, what about creating a tracker item for this so it won't get lost.
added to tracker.
thank you Werner.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.