Anjuta/Glade 教程还是更好 IDE?
Anjuta/Glade Tutorials or Better IDE?
我正在尝试为 Tails 开发 GUI 应用程序。我正在 Debian 8 上进行初始开发,因为直接在 Tails 中开发会很痛苦。
我开始使用 Anjuta,但文档基本上是 non-existent。 Anjuta 网站完全没有关于 Glade 是如何集成或如何使用的。我什至无法找到有关如何更改主 window 标题的文档。我找到的唯一教程是让您启动一个项目并使用为 GTKmm 项目生成的默认文件构建它。
是否有关于在 Anjuta 中进行 GUI 开发的好书或在线教程?
这可能不是一个完整的答案,但它太大了,无法作为评论放入。我经常使用 Anjuta,但我和你一样对缺少文档(顺便说一下,这不是 Anjuta 独有的)的感觉。我非常感谢 Anjuta(和 Glade),所以不要将以下内容视为对任何一个程序的批评。
我建议您考虑使用 PyGTK for GUI creation. It is a lot more productive. You can design the GUI in Glade - exactly the same way you would do for C/C++ - and then implement the code in Python, which you can also edit and manage from Anjuta. There are plenty of code examples, for example on the nullege code search engine。
关于 Anjuta 中的工作流程(针对 C/C++)。它主要基于Autotools系统,所以你真的应该read up a little on make, Makefile, and related tools. Though in principle Anjuta manages this, you will, sooner or later hit a problem, and some knowledge about Autotools will help you a long way (also this tutorial or this one. This slide series is interesting - probably because it is more graphical. There are even some video tutorials, like this one.).
没有必要在 Anjuta 内部使用 Glade。事实上,Glade 已经经历了一个与 'code generation' 拉开距离的漫长过程。它现在只包含一个 XML 生成器,可以单独调用。我发现 Anjuta 中留给 Glade 的屏幕 space 无论如何都不足以舒适地工作。
所以,总结一下:如果你主要需要一个GUI,考虑Python + Gtk。如果您确实需要 C 或 C++,Anjuta 是一个不错的选择 IDE,但请查看 Gtk 开发示例 (like this one)。看了这些,Anjuta的使用应该就清楚多了。
编辑:
Very useful answer. I have some underlying legacy code that has to be
C++. Is there a way to mix Python and C++ in Anjuta, or do you know of
any guideposts or tutorials for such?
您可以在 Anjuta 中打开一个 C++ 项目 - 甚至可以将遗留代码直接导入为 Makefile 项目。您还可以将新文件添加到 C/C++ 项目并将它们创建为 Python 文件。不过,我从来没有尝试过这样做,而且我不确定 Anjuta 会如何对待它们,例如,在 Makefile(s) 中。我目前没有混合语言的大型项目,但对于小型项目,我喜欢 'Geany',因为它不会妨碍。您必须手动维护 Makefile。
我正在尝试为 Tails 开发 GUI 应用程序。我正在 Debian 8 上进行初始开发,因为直接在 Tails 中开发会很痛苦。
我开始使用 Anjuta,但文档基本上是 non-existent。 Anjuta 网站完全没有关于 Glade 是如何集成或如何使用的。我什至无法找到有关如何更改主 window 标题的文档。我找到的唯一教程是让您启动一个项目并使用为 GTKmm 项目生成的默认文件构建它。
是否有关于在 Anjuta 中进行 GUI 开发的好书或在线教程?
这可能不是一个完整的答案,但它太大了,无法作为评论放入。我经常使用 Anjuta,但我和你一样对缺少文档(顺便说一下,这不是 Anjuta 独有的)的感觉。我非常感谢 Anjuta(和 Glade),所以不要将以下内容视为对任何一个程序的批评。
我建议您考虑使用 PyGTK for GUI creation. It is a lot more productive. You can design the GUI in Glade - exactly the same way you would do for C/C++ - and then implement the code in Python, which you can also edit and manage from Anjuta. There are plenty of code examples, for example on the nullege code search engine。
关于 Anjuta 中的工作流程(针对 C/C++)。它主要基于Autotools系统,所以你真的应该read up a little on make, Makefile, and related tools. Though in principle Anjuta manages this, you will, sooner or later hit a problem, and some knowledge about Autotools will help you a long way (also this tutorial or this one. This slide series is interesting - probably because it is more graphical. There are even some video tutorials, like this one.).
没有必要在 Anjuta 内部使用 Glade。事实上,Glade 已经经历了一个与 'code generation' 拉开距离的漫长过程。它现在只包含一个 XML 生成器,可以单独调用。我发现 Anjuta 中留给 Glade 的屏幕 space 无论如何都不足以舒适地工作。
所以,总结一下:如果你主要需要一个GUI,考虑Python + Gtk。如果您确实需要 C 或 C++,Anjuta 是一个不错的选择 IDE,但请查看 Gtk 开发示例 (like this one)。看了这些,Anjuta的使用应该就清楚多了。
编辑:
Very useful answer. I have some underlying legacy code that has to be C++. Is there a way to mix Python and C++ in Anjuta, or do you know of any guideposts or tutorials for such?
您可以在 Anjuta 中打开一个 C++ 项目 - 甚至可以将遗留代码直接导入为 Makefile 项目。您还可以将新文件添加到 C/C++ 项目并将它们创建为 Python 文件。不过,我从来没有尝试过这样做,而且我不确定 Anjuta 会如何对待它们,例如,在 Makefile(s) 中。我目前没有混合语言的大型项目,但对于小型项目,我喜欢 'Geany',因为它不会妨碍。您必须手动维护 Makefile。