ToDoList.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:CyclopsVFX-Unity 作者: geoffroygivry 项目源码 文件源码
def _closeRunningInstances(self):
        '''Check if other instances are already runnign and close them before proceding.'''

        for widget in QtGui.QApplication.allWidgets():
            name = widget.objectName()
            if type(widget) == type(self):
                p = widget.parentWidget()
                while p:
                    if p.parent() and isinstance(p.parent(), QtGui.QStackedWidget):
                        p.parent().removeWidget(p) # THIS ASSUMES NUKE'S QSTACKEDWIDGET HOLDING THIS WIDGET
                        p = None
                    else:
                        p = p.parentWidget()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号