在 ubuntu 上为用 C 编写的软件创建 GUI
我正在做一个嗅探项目并且快完成了。我们现在计划为其创建一个 GUI。我们在Ubuntu 10.10平台上用C语言编写了整个网络编程项目。关于如何为这些 C 程序创建 GUI 的教程,有什么想法/工具吗? 用于创建 GUI 的语言/工具/平台会影响 C 源代码吗?
谢谢
I'm doing a sniffing project and almost done with it. We are now planning to create a GUI for it. We have written the entire network programming project in C language on Ubuntu 10.10 platform. Any idea/tools with tutorials regarding how to create a GUI for these C programs?
Will the language/tool/platform used for creating the GUI affect the C source code?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有不同的库可用于在 Linux 中创建 GUI 应用程序。
有 GTK+,它是 GNOME 的本机小部件工具包,具有 C API。还有Qt,它具有非常好的C++ API,并且也可用于Windows、Mac OS X和其他平台。
There are different libraries for creating GUI applications in Linux.
There is GTK+, which is the native widget toolkit for GNOME and which has a C API. There is also Qt which has a very good C++ API, and which is also available for Windows, Mac OS X and other platforms.
我建议使用 GTK+ 。它本身是用 C 语言编写的,因此兼容性不应该成为问题。当我搞乱它时,我使用 this 来帮助我学习它。
I would suggest using GTK+ . It was natively written in C so compatibility shouldn't be an issue. I used this to help me learn it when i was messing around with it.