Python sip.isdeleted() Examples
The following are 9
code examples of sip.isdeleted().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sip
, or try the search function
.
Example #1
Source File: Qt.py From tf-pose with Apache License 2.0 | 5 votes |
def isQObjectAlive(obj): return not sip.isdeleted(obj)
Example #2
Source File: application.py From vorta with GNU General Public License v3.0 | 5 votes |
def _main_window_exists(self): return hasattr(self, 'main_window') and not sip.isdeleted(self.main_window)
Example #3
Source File: translator.py From Turing with MIT License | 5 votes |
def update(): import maths.lib global uis uis = [x for x in uis if not sip.isdeleted(x[1])] for ui, window in uis: ui.retranslateUi(window) # reload the docs importlib.reload(maths.lib.docs) for name, item in maths.lib.__dict__.items(): if isinstance(item, types.ModuleType) and not name.startswith("__") and name != "docs": importlib.reload(item)
Example #4
Source File: explorer.py From qgis-geoserver-plugin with GNU General Public License v2.0 | 5 votes |
def setProgress(self, value): if self.progress is not None and not sip.isdeleted(self.progress): self.progress.setValue(value)
Example #5
Source File: Qt.py From soapy with GNU General Public License v3.0 | 5 votes |
def isQObjectAlive(obj): return not sip.isdeleted(obj)
Example #6
Source File: processManager.py From DsgTools with GNU General Public License v2.0 | 5 votes |
def setProgressRange(self, maximum, uuid): """ Sets the progress range for the process maximum: progress range uuid: process uuid """ progressBar = self.findProgressBar(uuid) if not sip.isdeleted(progressBar): progressBar.setRange(0, maximum)
Example #7
Source File: processManager.py From DsgTools with GNU General Public License v2.0 | 5 votes |
def stepProcessed(self, uuid): """ Updates the process progress bar uuid: process uuid """ progressBar = self.findProgressBar(uuid) if not sip.isdeleted(progressBar): progressBar.setValue(progressBar.value() + 1)
Example #8
Source File: Qt.py From qgisSpaceSyntaxToolkit with GNU General Public License v3.0 | 5 votes |
def isQObjectAlive(obj): return not sip.isdeleted(obj)
Example #9
Source File: treedisplays.py From ExCo with GNU General Public License v3.0 | 5 votes |
def _item_editing_closed(self, widget): """ Signal that fires when editing was canceled/ended """ # print(widget.text()) # self.display_directory(self.current_viewed_directory) # Check if the directory name is valid if self.added_item != None and self.added_item.text() == "": self.base_item.removeRow(self.added_item.row()) self.added_item = None elif self.renamed_item != None: if not sip.isdeleted(self.renamed_item): self.renamed_item.setEditable(False) self.renamed_item = None