# Cross Platform GUI Toolkits

**URL:** <https://rubytalk.org/t/cross-platform-gui-toolkits/16389>\
**Category:** ruby-talk\
**Created:** [10 February 2005 19:32 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389 "2005-02-10T19:32:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tabor\_Kelly](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tabor\_Kelly](https://rubytalk.org/u/Tabor_Kelly)\
**Post date:** [10 February 2005 19:32 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389/1 "2005-02-10T19:32:25Z")

</div>

Hello,

My apologies if this is a silly question. I have never written a game before and I have never used a GUI toolkit before. I am an accomplished programmer (at things like HTTP proxy servers), and a senior in a Computer Science program.

I want to write a simple asteroids style game that will run on both my FreeBSD box, and my brother's Windows box. I want to use Ruby because I really want to learn Ruby, partially so I can try out RAILS. I want to write a clone of an old DOS game I can remember playing, but I can't remember the name of it.

Anyway, I will need simple 2D animation. So, what will work for this? I heat GTK+ is nice to code for with Ruby, but it looks like the Win32 port for GTK+ is kind of unstable (please correct me if I am wrong). I have heard that TK is a little painful to program with, but is \_very\_ cross platform (again, correct me if I am wrong). How about FOX? Will these GUI toolkits even work, or should I be looking at SDL?

Thank You in advance.

> **···**
>
> --
> 
> Tabor Kelly  
> [tkelly-ruby-talk@taborandtashell.net](mailto:tkelly-ruby-talk@taborandtashell.net)  
> [http://tabor.taborandtashell.net](http://tabor.taborandtashell.net)

---

<div class="post-metadata">

**Author:** ![Alexander\_Kellett2](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@Alexander\_Kellett2](https://rubytalk.org/u/Alexander_Kellett2)\
**Post date:** [10 February 2005 19:36 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389/2 "2005-02-10T19:36:50Z")

</div>

gtk's canvas is not only slow but also supposedly quite  
unstable on win32. so yeah. i think ur right 😉

i'm qtruby co-devel so i should really be saying things  
like: qt! cus qt4 will have gpl'ed windows support!!!  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and its wonderful! yay! and whoop!

but erm. sdl is a better choice. so i won't 😛

Alex

> **···**
>
> On Feb 10, 2005, at 8:32 PM, Tabor Kelly wrote:
> 
> > Anyway, I will need simple 2D animation. So, what will work for this? I heat GTK+ is nice to code for with Ruby, but it looks like the Win32 port for GTK+ is kind of unstable (please correct me if I am wrong). I have heard that TK is a little painful to program with, but is \_very\_ cross platform (again, correct me if I am wrong). How about FOX? Will these GUI toolkits even work, or should I be looking at SDL?

---

<div class="post-metadata">

**Author:** ![Tim\_Sutherland1](https://avatars.discourse-cdn.com/v4/letter/t/8e7dd6/32.png) [@Tim\_Sutherland1](https://rubytalk.org/u/Tim_Sutherland1)\
**Post date:** [13 February 2005 03:54 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389/3 "2005-02-13T03:54:59Z")

</div>

[...]

> Anyway, I will need simple 2D animation. So, what will work for this? I  
> heat GTK+ is nice to code for with Ruby, but it looks like the Win32  
> port for GTK+ is kind of unstable (please correct me if I am wrong). I  
> have heard that TK is a little painful to program with, but is \_very\_  
> cross platform (again, correct me if I am wrong). How about FOX? Will  
> these GUI toolkits even work, or should I be looking at SDL?

I haven't used it, but RUDL ([http://rudl.sf.net/\](http://rudl.sf.net/%5C)) sits on top of SDL and  
provides a higher level interface. (Based on the PyGame Python library.)

> **···**
>
> In article \<420BB6BD.7070006@taborandtashell.net\>, Tabor Kelly wrote:

---

<div class="post-metadata">

**Author:** ![Mark\_Volkmann](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@Mark\_Volkmann](https://rubytalk.org/u/Mark_Volkmann)\
**Post date:** [10 February 2005 19:39 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389/4 "2005-02-10T19:39:32Z")

</div>

Quoting Alexander Kellett \<ruby-lists@lypanov.net\>:

> \> Anyway, I will need simple 2D animation. So, what will work for this?  
> \> I heat GTK+ is nice to code for with Ruby, but it looks like the Win32  
> \> port for GTK+ is kind of unstable (please correct me if I am wrong). I  
> \> have heard that TK is a little painful to program with, but is \_very\_  
> \> cross platform (again, correct me if I am wrong). How about FOX? Will  
> \> these GUI toolkits even work, or should I be looking at SDL?
> 
> gtk's canvas is not only slow but also supposedly quite  
> unstable on win32. so yeah. i think ur right 😉

I believe Tk's canvas is both fast and stable. I've had good success with it.

> **···**
>
> > On Feb 10, 2005, at 8:32 PM, Tabor Kelly wrote:
> 
> > i'm qtruby co-devel so i should really be saying things  
> > like: qt! cus qt4 will have gpl'ed windows support!!!  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and its wonderful! yay! and whoop!
> > 
> > but erm. sdl is a better choice. so i won't 😛
> > 
> > Alex
> 
> --  
> R. Mark Volkmann  
> Partner, Object Computing, Inc.

---

<div class="post-metadata">

**Author:** ![Christian\_Neukirche1](https://avatars.discourse-cdn.com/v4/letter/c/ee7513/32.png) [@Christian\_Neukirche1](https://rubytalk.org/u/Christian_Neukirche1)\
**Post date:** [10 February 2005 20:33 UTC](https://rubytalk.org/t/cross-platform-gui-toolkits/16389/5 "2005-02-10T20:33:35Z")

</div>

"R. Mark Volkmann" \<mark@ociweb.com\> writes:

> Quoting Alexander Kellett \<ruby-lists@lypanov.net\>:
> 
> > \> Anyway, I will need simple 2D animation. So, what will work for this?  
> > \> I heat GTK+ is nice to code for with Ruby, but it looks like the Win32  
> > \> port for GTK+ is kind of unstable (please correct me if I am wrong). I  
> > \> have heard that TK is a little painful to program with, but is \_very\_  
> > \> cross platform (again, correct me if I am wrong). How about FOX? Will  
> > \> these GUI toolkits even work, or should I be looking at SDL?
> > 
> > gtk's canvas is not only slow but also supposedly quite  
> > unstable on win32. so yeah. i think ur right 😉
> 
> I believe Tk's canvas is both fast and stable. I've had good success with it.

I found it rather slow, as you need to create an object per line and  
so on... YMMV.

> > i'm qtruby co-devel so i should really be saying things  
> > like: qt! cus qt4 will have gpl'ed windows support!!!  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and its wonderful! yay! and whoop!

Someday. 🙂

> > but erm. sdl is a better choice. so i won't 😛

I'd use SDL too.

> **···**
>
> > > On Feb 10, 2005, at 8:32 PM, Tabor Kelly wrote:
> 
> --  
> Christian Neukirchen \<chneukirchen@gmail.com\> [http://chneukirchen.org](http://chneukirchen.org)
