本文整理汇总了Python中packages.spreadsheet.spreadsheet_cell.QCellWidget.deleteLater方法的典型用法代码示例。如果您正苦于以下问题:Python QCellWidget.deleteLater方法的具体用法?Python QCellWidget.deleteLater怎么用?Python QCellWidget.deleteLater使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类packages.spreadsheet.spreadsheet_cell.QCellWidget
的用法示例。
在下文中一共展示了QCellWidget.deleteLater方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
""" deleteLater() -> None
Make sure to free render window resource when
deallocating. Overriding PyQt deleteLater to free up
resources
"""
self.canvas = None
QCellWidget.deleteLater(self)
示例2: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
global viswinmapper
#print "deleting"
if self.view is not None:
self.view.setParent(None)
windowKey = self.getKey()
availWindows.append((self.view,viswinmapper[windowKey]))
del viswinmapper[windowKey]
QCellWidget.deleteLater(self)
示例3: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
""" deleteLater() -> None
Make sure to free render window resource when
deallocating. Overriding PyQt deleteLater to free up
resources
"""
self.renderer_maps = {}
for ren in self.getRendererList():
self.mRenWin.RemoveRenderer(ren)
self.removeObserversFromInteractorStyle()
self.SetRenderWindow(None)
QCellWidget.deleteLater(self)
示例4: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
""" deleteLater() -> None
Overriding PyQt deleteLater to free up resources
"""
# Destroy the old one if possible
if self.figManager:
try:
pylab.close(self.figManager.canvas.figure)
# There is a bug in Matplotlib backend_qt4. It is a
# wrong command for Qt4. Just ignore it and continue
# to destroy the widget
except:
pass
self.figManager.window.deleteLater()
QCellWidget.deleteLater(self)
示例5: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
""" deleteLater() -> None
Make sure to free render window resource when
deallocating. Overriding PyQt deleteLater to free up
resources
"""
#we need to re-parent self.window or it will be deleted together with
#this widget. The immediate parent is also deleted, so we will set to
# parent of the parent widget
if self.window is not None:
self.window.setParent(self.parent().parent())
self.window.setVisible(False)
self.canvas = None
self.window = None
QCDATWidget.usedIndexes.remove(self.windowId)
QCellWidget.deleteLater(self)
示例6: deleteLater
# 需要导入模块: from packages.spreadsheet.spreadsheet_cell import QCellWidget [as 别名]
# 或者: from packages.spreadsheet.spreadsheet_cell.QCellWidget import deleteLater [as 别名]
def deleteLater(self):
QCellWidget.deleteLater(self)