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


Python QDialog.showEvent方法代码示例

本文整理汇总了Python中AnyQt.QtWidgets.QDialog.showEvent方法的典型用法代码示例。如果您正苦于以下问题:Python QDialog.showEvent方法的具体用法?Python QDialog.showEvent怎么用?Python QDialog.showEvent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AnyQt.QtWidgets.QDialog的用法示例。


在下文中一共展示了QDialog.showEvent方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: showEvent

# 需要导入模块: from AnyQt.QtWidgets import QDialog [as 别名]
# 或者: from AnyQt.QtWidgets.QDialog import showEvent [as 别名]
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on show
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
开发者ID:cheral,项目名称:orange3,代码行数:11,代码来源:widget.py

示例2: showEvent

# 需要导入模块: from AnyQt.QtWidgets import QDialog [as 别名]
# 或者: from AnyQt.QtWidgets.QDialog import showEvent [as 别名]
 def showEvent(self, event):
     """Overloaded to restore the geometry when the widget is shown
     """
     QDialog.showEvent(self, event)
     if self.save_position and not self.__was_restored:
         # Restore saved geometry on (first) show
         if self.__splitter is not None:
             self.__splitter.setControlAreaVisible(self.controlAreaVisible)
         self.__restoreWidgetGeometry()
         self.__was_restored = True
     self.__quicktipOnce()
开发者ID:randxie,项目名称:orange3,代码行数:13,代码来源:widget.py

示例3: showEvent

# 需要导入模块: from AnyQt.QtWidgets import QDialog [as 别名]
# 或者: from AnyQt.QtWidgets.QDialog import showEvent [as 别名]
    def showEvent(self, event):
        """Overloaded to restore the geometry when the widget is shown
        """
        QDialog.showEvent(self, event)
        if self.save_position and not self.__was_restored:
            # Restore saved geometry on (first) show
            if self.__splitter is not None:
                self.__setControlAreaVisible(self.controlAreaVisible)
            if self.savedWidgetGeometry is not None:
                self.__restoreWidgetGeometry(bytes(self.savedWidgetGeometry))
            self.__was_restored = True

        if not self.__was_shown:
            # Mark as explicitly moved/resized if not already. QDialog would
            # otherwise adjust position/size on subsequent hide/show
            # (move/resize events coming from the window manager do not set
            # these flags).
            self.setAttribute(Qt.WA_Moved, True)
            self.setAttribute(Qt.WA_Resized, True)
            self.__was_shown = True
        self.__quicktipOnce()
开发者ID:lanzagar,项目名称:orange3,代码行数:23,代码来源:widget.py

示例4: showEvent

# 需要导入模块: from AnyQt.QtWidgets import QDialog [as 别名]
# 或者: from AnyQt.QtWidgets.QDialog import showEvent [as 别名]
 def showEvent(self, event):
     # Clear the triggered action before show.
     self.__triggeredAction = None
     QDialog.showEvent(self, event)
开发者ID:astaric,项目名称:orange3,代码行数:6,代码来源:welcomedialog.py


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