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()
评论列表
文章目录