问题描述
我的这个相关问题 让我为我的大部分后端服务选择了 Java(它是一个多组件系统).现在,我不确定这对于跨平台桌面 GUI 应用程序是否也是一个不错的选择.我记得使用的 Java 桌面应用程序具有我不喜欢的非本地外观,但我不确定这是否取决于 GUI 工具包的选择而不是语言.
The answers to this related question of mine lead me to choose Java for most of my backend services (it's a multi-component system). Now, I'm not sure whether that would be a good choice for cross-platform desktop GUI apps, as well. The Java desktop applications I remember using have that non-native look that I don't like, but I'm not sure if that depends on the choice of GUI toolkit rather than the language.
我的大部分 GUI 都是基于 Web 的,而桌面 GUI 的受众(管理员、开发人员和测试人员)相对较少,因此我只能将一小部分时间预算用于做这些.不过,我想要原生外观并避免一堆依赖项.
Most of my GUIs will be web-based, and the desktop ones will have a relatively small audience (administrators, developers and testers), so I can only put aside a small fraction of my time budget to do those. Still, I want native look and avoid a bunch of dependencies.
从我想使用的 GUI 工具包开始,然后选择支持它的语言可能是最合适的.我知道的跨平台的有:
It's probably most adequate to start with the GUI toolkit I want to use and then pick a language that supports it. The cross-platform ones I know are:
- GTK
- qt
- AIR(当它到达 Linux 时)
因此,例如,我可能会将 GTK# 与 .Net/Mono 一起使用.我将面临什么样的依赖问题?您是否建议将实际的 GUI 与应用程序的其余部分分开,并在 Linux 上使用 GTK,以及在 Windows 上使用原生的东西,例如 Windows Forms,从而避免在 Windows 上安装 GTK?
So, for example, I might use GTK# with .Net/Mono. What kind of dependency issues am I going to face? Would you recommend separating the actual GUI from the rest of the application and use GTK on Linux, and something native on Windows, like Windows Forms, thus avoiding to have to install GTK on Windows?
推荐答案
Bruce Eckel 是 Flex 作为跨平台用户界面的伟大赞助商,适用于 Java 和 python 服务.他在 Artima 上写了很多关于它的文章:
Bruce Eckel is a great sponsor of Flex as cross-platform user interface, for both Java and python services. He wrote about it quite a lot, on Artima:
- 混合 Java
- 在您的应用程序中添加 Flex UI
- 与 Python、Twisted 和 Flex 的并发
这篇关于跨平台桌面 GUI 的首选开发平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!