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


Python QCellWidget.deleteLater方法代码示例

本文整理汇总了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)    
开发者ID:cjh1,项目名称:VisTrails,代码行数:10,代码来源:cdat_cell.py

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

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

示例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)
开发者ID:imclab,项目名称:vistrails,代码行数:19,代码来源:plots.py

示例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)    
开发者ID:imclab,项目名称:vistrails,代码行数:19,代码来源:cdat_cell.py

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


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