本文整理匯總了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