Exemplo n.º 1
0
    def _setSheet(self, _sheet):
        BaseLogic._setSheet(self, _sheet)

        self.__viewer._setSheet(_sheet)

        _sheet.eventRootChanged = self._onRootChanged
        _sheet.eventUpdate = self._onUpdate
Exemplo n.º 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()
Exemplo n.º 3
0
    def _setSheet(self, _sheet):
        BaseLogic._setSheet(self, _sheet)

        self.__viewer._setSheet(_sheet)

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

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

        # attach flags
        self.rectAttached = False
Exemplo n.º 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()))
Exemplo n.º 11
0
    def __init__(self):
        """Constructor
        """
        BaseLogic.__init__(self)
        self.widget = None

        self.isRoot = False
         
        # attach flags
        self.rectAttached = False
        
        self._createArea = self._createStaticText
Exemplo n.º 12
0
    def __init__(self):
        """Constructor
        """
        BaseLogic.__init__(self)
        self.widget = None

        self.isRoot = False
         
        # attach flags
        self.rectAttached = False
        
        self._createArea = self._createStaticText
Exemplo n.º 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))
Exemplo n.º 14
0
 def __del__(self):
     BaseLogic.__del__(self)
Exemplo n.º 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
Exemplo n.º 16
0
    def _onUpdate(self, _timeSinceLastFrame):
        BaseLogic._update(self, _timeSinceLastFrame)

        self.__viewer._onUpdate(_timeSinceLastFrame)
Exemplo n.º 17
0
 def delete(self):
     BaseLogic.delete(self)
     self.editPanel.delete()
     self.__viewer.delete()
Exemplo n.º 18
0
    def delete(self):
        BaseLogic.delete(self)

        self.__viewer.delete()
Exemplo n.º 19
0
 def __del__(self):
     BaseLogic.__del__(self)
Exemplo n.º 20
0
 def __del__(self):
     """Destructor
     """        
     BaseLogic.__del__(self)
Exemplo n.º 21
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateVideo(_timeSinceLastFrame)
     self._updateState()
Exemplo n.º 22
0
 def delete(self):
     BaseLogic.delete(self)
Exemplo n.º 23
0
    def _onUpdate(self, _timeSinceLastFrame):
        BaseLogic._update(self, _timeSinceLastFrame)

        self.__viewer._onUpdate(_timeSinceLastFrame)
Exemplo n.º 24
0
 def __del__(self):
     """Destructor
     """        
     BaseLogic.__del__(self)        
Exemplo n.º 25
0
    def delete(self):
        BaseLogic.delete(self)

        self.__viewer.delete()
Exemplo n.º 26
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateState()
     self._onContentUpdate()
Exemplo n.º 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
Exemplo n.º 28
0
 def _onUpdate(self, _timeSinceLastFrame):
     """Logic update
     """
     BaseLogic._update(self, _timeSinceLastFrame)
     self._updateVideo(_timeSinceLastFrame)
     self._updateState()
Exemplo n.º 29
0
 def __init__(self):
     BaseLogic.__init__(self)