def _setSheet(self, _sheet): BaseLogic._setSheet(self, _sheet) self.__viewer._setSheet(_sheet) _sheet.eventRootChanged = self._onRootChanged _sheet.eventUpdate = self._onUpdate
def __init__(self): BaseLogic.__init__(self) # setting new logic for a sheet if viewer already exists self.__viewer = TextViewer() # self.__viewer._createArea = self._createEditText self.editPanel = logic_controls.EditPanel()
def delete(self): """Deletion message """ BaseLogic.delete(self) # detaching objects if self.rectAttached: self._getSheet().sceneNodeChilds.detachObject(self.rect) self.destroyPanel()
def _onUpdate(self, _timeSinceLastFrame): """Notification on update """ BaseLogic._update(self, _timeSinceLastFrame) if self.needGridUpdate: self.needGridUpdate = False self.updateGrid()
def _setSheet(self, _sheet): """Sets sheet for a logic """ BaseLogic._setSheet(self, _sheet) _sheet.eventRootChanged = self._onRootChanged _sheet.eventUpdate = self._onUpdate self._createArea() self.statictext.setCaption(unicode(self.getContent()))
def __init__(self): """Constructor """ BaseLogic.__init__(self) self.statictext = None self.isRoot = False # attach flags self.rectAttached = False
def _setSheet(self, _sheet): """Sets sheet for a logic """ BaseLogic._setSheet(self, _sheet) _sheet.eventRootChanged = self._onRootChanged _sheet.eventUpdate = self._onUpdate _sheet.eventContentUpdate = self._onContentUpdate self._createArea() self.widget.setCaption(unicode(self.getContent()))
def __init__(self): """Constructor """ BaseLogic.__init__(self) self.widget = None self.isRoot = False # attach flags self.rectAttached = False self._createArea = self._createStaticText
def _setSheet(self, _sheet): """Sets sheet for a logic """ BaseLogic._setSheet(self, _sheet) _sheet.eventRootChanged = self._onRootChanged _sheet.eventUpdate = self._onUpdate _sheet.eventContentUpdate = self._onContentUpdate self._createArea() self.widget.setCaption(unicode(self.getContent())) #self.widget.setCaption("#FFFFFF This is color. #FF00FF And this is other") #self.widget.setTextAlign() self.widget.setTextColour(mygui.Colour(0, 0, 0, 1))
def __del__(self): BaseLogic.__del__(self)
def __init__(self): BaseLogic.__init__(self) # setting new logic for a sheet if viewer already exists self.__viewer = SCsViewer() self.__viewer._createArea = self._createEditSCs
def _onUpdate(self, _timeSinceLastFrame): BaseLogic._update(self, _timeSinceLastFrame) self.__viewer._onUpdate(_timeSinceLastFrame)
def delete(self): BaseLogic.delete(self) self.editPanel.delete() self.__viewer.delete()
def delete(self): BaseLogic.delete(self) self.__viewer.delete()
def __del__(self): """Destructor """ BaseLogic.__del__(self)
def _onUpdate(self, _timeSinceLastFrame): """Logic update """ BaseLogic._update(self, _timeSinceLastFrame) self._updateVideo(_timeSinceLastFrame) self._updateState()
def delete(self): BaseLogic.delete(self)
def _onUpdate(self, _timeSinceLastFrame): """Logic update """ BaseLogic._update(self, _timeSinceLastFrame) self._updateState() self._onContentUpdate()
def __init__(self): BaseLogic.__init__(self) # setting new logic for a sheet if viewer already exists self.__viewer = TextViewer() self.__viewer._createArea = self._createEditText
def __init__(self): BaseLogic.__init__(self)