本文整理汇总了Python中sip.isdeleted方法的典型用法代码示例。如果您正苦于以下问题:Python sip.isdeleted方法的具体用法?Python sip.isdeleted怎么用?Python sip.isdeleted使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sip
的用法示例。
在下文中一共展示了sip.isdeleted方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: isQObjectAlive
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
def isQObjectAlive(obj):
return not sip.isdeleted(obj)
示例2: _main_window_exists
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
def _main_window_exists(self):
return hasattr(self, 'main_window') and not sip.isdeleted(self.main_window)
示例3: update
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
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)
示例4: setProgress
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
def setProgress(self, value):
if self.progress is not None and not sip.isdeleted(self.progress):
self.progress.setValue(value)
示例5: setProgressRange
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
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)
示例6: stepProcessed
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
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)
示例7: _item_editing_closed
# 需要导入模块: import sip [as 别名]
# 或者: from sip import isdeleted [as 别名]
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