当前位置: 首页>>代码示例>>Python>>正文


Python sip.isdeleted方法代码示例

本文整理汇总了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) 
开发者ID:SrikanthVelpuri,项目名称:tf-pose,代码行数:4,代码来源:Qt.py

示例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) 
开发者ID:borgbase,项目名称:vorta,代码行数:4,代码来源:application.py

示例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) 
开发者ID:TuringApp,项目名称:Turing,代码行数:15,代码来源:translator.py

示例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) 
开发者ID:planetfederal,项目名称:qgis-geoserver-plugin,代码行数:5,代码来源:explorer.py

示例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) 
开发者ID:dsgoficial,项目名称:DsgTools,代码行数:11,代码来源:processManager.py

示例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) 
开发者ID:dsgoficial,项目名称:DsgTools,代码行数:10,代码来源:processManager.py

示例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 
开发者ID:matkuki,项目名称:ExCo,代码行数:16,代码来源:treedisplays.py


注:本文中的sip.isdeleted方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。