當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。