Python-Qt。如何制作用于 Telnet 或 ssh 服务器交互的终端窗口

发布于 2024-09-24 20:16:58 字数 174 浏览 2 评论 0原文

我正在制作一个 PyQt 应用程序,我想制作类似终端窗口的东西,用户可以在其中与 Telnet 或 ssh 服务器交互。

我的第一个想法是有一个带有黑色 QPlainTextEdit 和滚动条的窗口。

我是 python-Qt 世界的新手,希望得到一些指导。有什么想法吗?

谢谢 :-)

i am making a PyQt application, and i want to make something like a Terminal Window, where the user can interact with a Telnet or ssh server.

My first idea was to have a Window with a black QPlainTextEdit and a scrollbar.

I am new to python-Qt world and would appreciate some guidance. Any ideas?

Thanks :-)

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小矜持 2024-10-01 20:16:58

这是使用 Qt 用 C++ 编写的终端程序的链接。我不确定它对于低级的东西有多大帮助,但我确信 Qt 部分会有帮助。 http://sourceforge.net/projects/qtermwidget/

Here's a link to a terminal program written in C++ using Qt. I'm not sure how helpful it will be for the low level stuff but I'm sure the Qt parts will be helpful. http://sourceforge.net/projects/qtermwidget/

灼疼热情 2024-10-01 20:16:58

我为此目的编写了 qtpyTerminal:

https://github.com/mguijarr/qtpyTerminal

它是一个 vt100在 Qt 小部件中呈现的解释器(基于 Pyte)。它可以与任何 shell 命令交互。

I wrote qtpyTerminal for this purpose:

https://github.com/mguijarr/qtpyTerminal

It is a vt100 interpreter (based on Pyte) which renders in a Qt widget. It can interact with any shell command.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文