示例#1
0
    def _onButtonOkClick(self, widget):
        """Event handler for "Ok" button
        """
        if self.sel_fmt is not None:
            import scg_utils
            scg_utils.createWindowFromNode(self.object,
                                           self._formats[self.sel_fmt][0],
                                           self.checkbox_edit.getStateCheck())

        self.delete()
示例#2
0
 def _onButtonOkClick(self, widget):
     """Event handler for "Ok" button
     """
     if self.sel_fmt is not None:
         import scg_utils
         scg_utils.createWindowFromNode(self.object,
                                        self._formats[self.sel_fmt][0],
                                        self.checkbox_edit.getStateCheck())
     
     self.delete()
示例#3
0
 def _contentAccept(self, _widget, _v):
     """Handler for content combo accept
     """
     fmt = self.fmts[_v]
     
     assert type(self.object_active) is scg_objects.SCgNode
     window = scg_utils.createWindowFromNode(self.object_active, fmt)
     
     self._logic._getSheet().unselectAll()
     self._logic._getSheet().select(window)
 
     self._destroy_content_combo()
     self.state = SCgEditMode.ES_None
     self.object_active = None        
     del self.fmts
示例#4
0
    def _contentAccept(self, _widget, _v):
        """Handler for content combo accept
        """
        fmt = self.fmts[_v]

        assert type(self.object_active) is scg_objects.SCgNode
        window = scg_utils.createWindowFromNode(self.object_active, fmt)

        self._logic._getSheet().unselectAll()
        self._logic._getSheet().select(window)

        self._destroy_content_combo()
        self.state = SCgEditMode.ES_None
        self.object_active = None
        del self.fmts