Пример #1
0
    def _setSheet(self, _sheet):
        BaseLogic._setSheet(self, _sheet)

        self.__viewer._setSheet(_sheet)

        _sheet.eventRootChanged = self._onRootChanged
        _sheet.eventUpdate = self._onUpdate
Пример #2
0
    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()
Пример #3
0
    def _setSheet(self, _sheet):
        BaseLogic._setSheet(self, _sheet)

        self.__viewer._setSheet(_sheet)

        _sheet.eventRootChanged = self._onRootChanged
        _sheet.eventUpdate = self._onUpdate
Пример #4
0
 def delete(self):
     """Deletion message
     """
     BaseLogic.delete(self)
     # detaching objects
     if self.rectAttached:
         self._getSheet().sceneNodeChilds.detachObject(self.rect)
     self.destroyPanel()
Пример #5
0
    def _onUpdate(self, _timeSinceLastFrame):
        """Notification on update
        """
        BaseLogic._update(self, _timeSinceLastFrame)

        if self.needGridUpdate:
            self.needGridUpdate = False
            self.updateGrid()
Пример #6
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Notification on update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     
     if self.needGridUpdate:
         self.needGridUpdate = False
         self.updateGrid()
Пример #7
0
 def delete(self):
     """Deletion message
     """
     BaseLogic.delete(self)
     # detaching objects
     if self.rectAttached:
         self._getSheet().sceneNodeChilds.detachObject(self.rect)
     self.destroyPanel()
Пример #8
0
    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()))
Пример #9
0
    def __init__(self):
        """Constructor
        """
        BaseLogic.__init__(self)
        self.statictext = None
        self.isRoot = False

        # attach flags
        self.rectAttached = False
Пример #10
0
 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()))
Пример #11
0
    def __init__(self):
        """Constructor
        """
        BaseLogic.__init__(self)
        self.widget = None

        self.isRoot = False
         
        # attach flags
        self.rectAttached = False
        
        self._createArea = self._createStaticText
Пример #12
0
    def __init__(self):
        """Constructor
        """
        BaseLogic.__init__(self)
        self.widget = None

        self.isRoot = False
         
        # attach flags
        self.rectAttached = False
        
        self._createArea = self._createStaticText
Пример #13
0
    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))
Пример #14
0
 def __del__(self):
     BaseLogic.__del__(self)
Пример #15
0
    def __init__(self):
        BaseLogic.__init__(self)

        # setting new logic for a sheet if viewer already exists
        self.__viewer = SCsViewer()
        self.__viewer._createArea = self._createEditSCs
Пример #16
0
    def _onUpdate(self, _timeSinceLastFrame):
        BaseLogic._update(self, _timeSinceLastFrame)

        self.__viewer._onUpdate(_timeSinceLastFrame)
Пример #17
0
 def delete(self):
     BaseLogic.delete(self)
     self.editPanel.delete()
     self.__viewer.delete()
Пример #18
0
    def delete(self):
        BaseLogic.delete(self)

        self.__viewer.delete()
Пример #19
0
 def __del__(self):
     BaseLogic.__del__(self)
Пример #20
0
 def __del__(self):
     """Destructor
     """        
     BaseLogic.__del__(self)
Пример #21
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateVideo(_timeSinceLastFrame)
     self._updateState()
Пример #22
0
 def delete(self):
     BaseLogic.delete(self)
Пример #23
0
    def _onUpdate(self, _timeSinceLastFrame):
        BaseLogic._update(self, _timeSinceLastFrame)

        self.__viewer._onUpdate(_timeSinceLastFrame)
Пример #24
0
 def __del__(self):
     """Destructor
     """        
     BaseLogic.__del__(self)        
Пример #25
0
    def delete(self):
        BaseLogic.delete(self)

        self.__viewer.delete()
Пример #26
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateState()
     self._onContentUpdate()
Пример #27
0
    def __init__(self):
        BaseLogic.__init__(self)

        # setting new logic for a sheet if viewer already exists
        self.__viewer = TextViewer()
        self.__viewer._createArea = self._createEditText
Пример #28
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateVideo(_timeSinceLastFrame)
     self._updateState()
Пример #29
0
 def __init__(self):
     BaseLogic.__init__(self)