本文整理汇总了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
示例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_()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()
示例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()