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


Python Qt.WindowMinimized方法代码示例

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


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

示例1: activateWindow

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def activateWindow(self):
        if not self._activationWindow:
            print("No registered ActivationWindow")
            return
        # Unfortunately this *doesn't* do much of any use, as it won't
        # bring the window to the foreground under KDE... sigh.
        self._activationWindow.setWindowState(
            self._activationWindow.windowState() & ~Qt.WindowMinimized)
        self._activationWindow.raise_()
        self._activationWindow.requestActivate() 
开发者ID:dragondjf,项目名称:QMusic,代码行数:12,代码来源:dsingleapplication.py

示例2: bring_to_front

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def bring_to_front(self):
        self.setWindowState(self.windowState() & ~
                            Qt.WindowMinimized | Qt.WindowActive)
        self.show()
        self.activateWindow()

    # Prevent QMenu from closing 
开发者ID:DotBow,项目名称:Blender-Version-Manager,代码行数:9,代码来源:main_window.py

示例3: _onMainWindowStateChanged

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def _onMainWindowStateChanged(self, window_state: int) -> None:
        if self._tray_icon and self._tray_icon_widget:
            visible = window_state == Qt.WindowMinimized
            self._tray_icon_widget.setVisible(visible)

    # Show toast message using System tray widget. 
开发者ID:Ultimaker,项目名称:Uranium,代码行数:8,代码来源:QtApplication.py

示例4: checkWindowMinimizedState

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def checkWindowMinimizedState(self) -> bool:
        if self._main_window is not None and self._main_window.windowState() == Qt.WindowMinimized:
            return True
        else:
            return False 
开发者ID:Ultimaker,项目名称:Uranium,代码行数:7,代码来源:QtApplication.py

示例5: activateWindow

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def activateWindow(self):
        if not self._activationWindow:
            return
        self._activationWindow.setWindowState(self._activationWindow.windowState() & ~Qt.WindowMinimized)
        self._activationWindow.raise_()
        self._activationWindow.activateWindow() 
开发者ID:ozmartian,项目名称:vidcutter,代码行数:8,代码来源:singleapplication.py

示例6: show_top

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def show_top(self):
        self.activateWindow()
        self.setWindowState((self.windowState() & ~Qt.WindowMinimized) | Qt.WindowActive)
        self.raise_()
        self.show() 
开发者ID:Scille,项目名称:parsec-cloud,代码行数:7,代码来源:main_window.py

示例7: activateWindow

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def activateWindow(self):
        if not self._activationWindow:
            return
        self._activationWindow.setWindowState(
            self._activationWindow.windowState() & ~Qt.WindowMinimized)
        self._activationWindow.raise_()
        self._activationWindow.activateWindow() 
开发者ID:PyQt5,项目名称:PyQt,代码行数:9,代码来源:Application.py

示例8: activateWindow

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def activateWindow(self):
        if not self._activationWindow:
            return

        self._activationWindow.show()
        self._activationWindow.setWindowState(
            self._activationWindow.windowState() & ~Qt.WindowMinimized)
        self._activationWindow.raise_()
        self._activationWindow.activateWindow() 
开发者ID:artisan-roaster-scope,项目名称:artisan,代码行数:11,代码来源:qtsingleapplication.py

示例9: bring_to_front

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowMinimized [as 别名]
def bring_to_front(self):
        """ Brings the terminal window to the front and places the cursor in the textbox """
        self._textbox.setFocus()
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.raise_()
        self.activateWindow()

    # Handlers that update the labels at the bottom 
开发者ID:nccgroup,项目名称:binja_dynamics,代码行数:10,代码来源:__init__.py


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