Python PyQt5.QtCore.Qt 模块,WindowActive() 实例源码

我们从Python开源项目中,提取了以下10个代码示例,用于说明如何使用PyQt5.QtCore.Qt.WindowActive()

项目:binja_dynamics    作者:nccgroup    | 项目源码 | 文件源码
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
项目:EMFT    作者:132nd-etcher    | 项目源码 | 文件源码
def show(self):
        self.setWindowState(self.windowState() & Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow()
        super(QMainWindow, self).show()

        self.raise_()
项目:binja_dynamics    作者:ehennenfent    | 项目源码 | 文件源码
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
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:Py2DSpectroscopy    作者:SvenBo90    | 项目源码 | 文件源码
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()
项目:BigBrotherBot-For-UrT43    作者:ptitbigorneau    | 项目源码 | 文件源码
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()