示例#1
0
 def resizeEvent(self, event):
     """Overloaded to save the geometry (width and height) when the widget
     is resized.
     """
     QDialog.resizeEvent(self, event)
     # Don't store geometry if the widget is not visible
     # (the widget receives a resizeEvent (with the default sizeHint)
     # before first showEvent and we must not overwrite the the
     # savedGeometry with it)
     if self.save_position and self.isVisible():
         self.__updateSavedGeometry()
示例#2
0
文件: widget.py 项目: cheral/orange3
 def resizeEvent(self, event):
     """Overloaded to save the geometry (width and height) when the widget
     is resized.
     """
     QDialog.resizeEvent(self, event)
     # Don't store geometry if the widget is not visible
     # (the widget receives a resizeEvent (with the default sizeHint)
     # before first showEvent and we must not overwrite the the
     # savedGeometry with it)
     if self.save_position and self.isVisible():
         self.__updateSavedGeometry()