python类WindowActive()的实例源码

__init__.py 文件源码 项目:binja_dynamics 作者: nccgroup 项目源码 文件源码 阅读 24 收藏 0 点赞 0 评论 0
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
main_ui.py 文件源码 项目:EMFT 作者: 132nd-etcher 项目源码 文件源码 阅读 34 收藏 0 点赞 0 评论 0
def show(self):
        self.setWindowState(self.windowState() & Qt.WindowMinimized | Qt.WindowActive)
        self.activateWindow()
        super(QMainWindow, self).show()

        self.raise_()
__init__.py 文件源码 项目:binja_dynamics 作者: ehennenfent 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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
backgroundWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
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()
fittingWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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()
fittingWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 20 收藏 0 点赞 0 评论 0
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()
fittingWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 21 收藏 0 点赞 0 评论 0
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()
spectrumWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
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()
mapWindow.py 文件源码 项目:Py2DSpectroscopy 作者: SvenBo90 项目源码 文件源码 阅读 19 收藏 0 点赞 0 评论 0
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()
widgets.py 文件源码 项目:BigBrotherBot-For-UrT43 作者: ptitbigorneau 项目源码 文件源码 阅读 18 收藏 0 点赞 0 评论 0
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()


问题


面经


文章

微信
公众号

扫码关注公众号