def writeCollectionItems(self, output, stripFrmId=''): CollectionDTC.writeCollectionItems(self, output, stripFrmId) warn = 0 for constr in self.textConstrLst: if constr.params[0] == 'None': wx.LogWarning(_('No control/sizer for sizer item of %s')%( self.parentCompanion.name)) warn = 1 if warn: wx.LogWarning(_('None values are only valid in the Designer.\n' 'The generated source will be invalid outside the ' 'Designer and should be fixed before executing.'))
def writeCollectionItems(self, output, stripFrmId=''): CollectionDTC.writeCollectionItems(self, output, stripFrmId) warn = 0 for constr in self.textConstrLst: if constr.params['page'] == 'None': wx.LogWarning('No control for %s, page %s'%( self.parentCompanion.name, constr.params['text'])) warn = 1 if warn: wx.LogWarning(_('The red-dashed area of a %s page must contain\n'\ 'a control or the generated source will be invalid outside the '\ 'Designer')% self.parentCompanion.bookCtrlName)
def writeCollectionItems(self, output, stripFrmId=''): CollectionDTC.writeCollectionItems(self, output, stripFrmId) warn = 0 for constr in self.textConstrLst: if constr.params[0] == 'None': wx.LogWarning( _('No control/sizer for sizer item of %s') % (self.parentCompanion.name)) warn = 1 if warn: wx.LogWarning( _('None values are only valid in the Designer.\n' 'The generated source will be invalid outside the ' 'Designer and should be fixed before executing.'))