示例#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)