为 Windows 创建 Ruby 应用程序 [英] Creating Ruby applications for Windows

查看:61
本文介绍了为 Windows 创建 Ruby 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个 Windows 应用程序.老实说,我现在不太关心跨平台(但仍然会很好)

I want to develop a Windows application. Honestly I care little about cross-platforms for now (but still would be good)

我想使用 Ruby,因为它的语法非常简单,而且非常......好,简单易学.

I want to use Ruby, since it has quite a simple syntax and is so.. well, simple and easy to learn.

我的应用程序就像一个游戏关卡创建者",您可以在其中设计自己的关卡,然后通过读取创建者应用程序创建的项目文件,将其与另一个游戏关卡播放器"应用程序一起运行.你明白了.

My application is like a "game level creator", where you can design your own level and then run it with another application which is a "game level player" by reading the project file created by the creator app. You get the idea.

现在,我有了一台新电脑,而且完全干净.完全没有我旧的 Ruby 实验和失败的痕迹.

Now, I got a new PC and is completely clean. Absolutely no trace of my old Ruby experiments and fails.

首先,我需要为我的 Ruby 应用程序选择一个 GUI 平台!你能给我推荐一款吗?我听说过 Shoes 和 Tk,但想知道您的想法.

First of all, I will need to choose a GUI platform for my Ruby application! Can you recommend me one? I have heard of Shoes and Tk, but want to know what you think.

推荐答案

您是否考虑过 IronRuby?它是在 .Net 平台上运行的 Ruby 实现,这意味着如果您决定在 Windows 中运行,您可以访问所有标准的 Windows 窗体库.http://ironruby.net/

Have you considered IronRuby? It's an implementation of Ruby that runs on the .Net platform, which means you have access to all of the standard Windows Forms libraries, if you decide to run in Windows. http://ironruby.net/

根据 david4dev,它还可以在 Mono 上运行良好,这使得它非常适合跨平台兼容性,因为Mono 平台可在 Mac OSX 和 Linux 以及 Windows 上运行.

According to david4dev, it also runs well on Mono, which makes it great for cross-platform compatibility, as the Mono platform runs on Mac OSX and Linux, as well as Windows.

Jorg W Mittag 表示使用 WPF(Windows 演示框架)是更好的选择创建 GUI 是因为 Mono 具有非常强大的 WPF 实现.WPF 的创建与平台无关,并且更适合通过 WinForms 进行跨平台开发,因为 WinForms 与 Windows 操作系统紧密耦合.

Jorg W Mittag says that using the WPF (Windows Presentation Framework) is an even better option for creating GUI's since Mono has a very strong implementation of the WPF. The WPF was created to be platform agnostic and is better suited for cross-platform development over WinForms, since WinForms is tightly coupled with the Windows OS.

这篇关于为 Windows 创建 Ruby 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆