Python:将窗口焦点设置在终端上

发布于 2024-08-24 19:39:45 字数 167 浏览 4 评论 0原文

我有一个 Python 应用程序,它为我打开一些绘图,然后要求用户输入。问题是,打开绘图后,焦点不再位于终端上,因此您必须手动单击或使用 Tab 键到达它。

我想使用 Python 将焦点设置到终端窗口 - 这可能吗?

我正在使用 gnuplot.py,也许有一个选项可以在后台打开绘图?

I have a Python application that opens some plots for me and then asks the user for input. The problem is that after opening the plot, the focus isn't on the terminal anymore, so you have to click or tab to it manually.

I would like to set the focus to the terminal window with Python - is that possible?

I'm using gnuplot.py, maybe there is an option to open the plot in the background?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文