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


Python Qt.WindowActive方法代码示例

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


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

示例1: bring_to_front

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [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

示例2: show

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

        self.raise_() 
开发者ID:132nd-etcher,项目名称:EMFT,代码行数:8,代码来源:main_ui.py

示例3: create_cursors

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def create_cursors(self, x1, x2):

        # check whether the spectrum window was visible
        self._visible_flag = self.parent().isVisible()

        # create cursor
        self._spectrum_canvas.create_cursors(x1, x2)

        # bring window to front
        self.parent().show()
        self.parent().setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.parent().activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:14,代码来源:spectrumWindow.py

示例4: cb_boundary_slider_released

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def cb_boundary_slider_released(self):

        # destroy cursors on spectru mwindow
        self._app.windows['spectrumWindow'].get_current_widget().destroy_cursors()

        # bring window to front
        self.show()
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:11,代码来源:backgroundWindow.py

示例5: cb_area_slider_released

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def cb_area_slider_released(self):

        # remove area map from the map canvas
        self._app.windows['mapWindow'].ui.tab_widget.currentWidget().destroy_area_map()

        # bring this window to front again
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:10,代码来源:fittingWindow.py

示例6: cb_limit_slider_released

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def cb_limit_slider_released(self):

        # remove cursor from the spectrum canvas
        self._app.windows['spectrumWindow'].get_current_widget().destroy_cursors()

        # bring window to front
        self.show()
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:11,代码来源:fittingWindow.py

示例7: cb_threshold_slider_released

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def cb_threshold_slider_released(self):

        # destroy threshold map from the map canvas
        self._app.windows['mapWindow'].ui.tab_widget.currentWidget().destroy_threshold_map()

        # bring window to front
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:10,代码来源:fittingWindow.py

示例8: create_threshold_map

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def create_threshold_map(self, threshold_data, threshold):

        # create threshold map on the map canvas
        self._map_canvas.create_threshold_map(threshold_data, threshold)

        # bring window to front
        self.setWindowState(self.windowState() & ~Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow() 
开发者ID:SvenBo90,项目名称:Py2DSpectroscopy,代码行数:10,代码来源:mapWindow.py

示例9: make_visible

# 需要导入模块: from PyQt5.QtCore import Qt [as 别名]
# 或者: from PyQt5.QtCore.Qt import WindowActive [as 别名]
def make_visible(self):
        """
        Make sure that the main window is visible
        """
        self.setWindowState((self.windowState() & ~Qt.WindowMinimized) | Qt.WindowActive)
        self.activateWindow()
        self.raise_()
        self.show() 
开发者ID:ptitbigorneau,项目名称:BigBrotherBot-For-UrT43,代码行数:10,代码来源:widgets.py


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