FX ruby - TK/tcl
Seite 1 von 1

Autor:  kermit [ 05 Mai 2004, 20:31 ]
Betreff des Beitrags:  FX ruby - TK/tcl


ich bin erst vor kurzem auf die Sprache gestossen u. finde sie sehr interessant, sodass ich mich mehr mit ihr beschaeftigen will...

um gui oberflaechen zu bauen muss man sich anscheinend zwischen tk und FXruby entscheiden,

Fox scheint die neuere (bessere? ) Variante zu sein, ist das so, bzw. wo sind die Unterschiede ?



Autor:  kermit [ 05 Mai 2004, 23:12 ]
Betreff des Beitrags: 

ah, hab schon was interessantes in einem online buch gefunden:


was verschieden "guis" vergleicht: ( fox scheint wirklich die aktuell interessanteste variante zu sein )

Using the Standard Ruby GUI: Tk

· Tk is still the standard GUI for Ruby, and this alone is a compelling reason to consider Tk for your application’s user interface. It offers the path of least resistance in terms of distributing your Ruby applications, because you’re almost guaranteed that your end users will already have a working Ruby/Tk installation in place.

· The most serious problem with Tk is its lack of more modern widgets like combo-boxes, tree lists, and the like. While it’s true that Tk can be extended with third-party widget sets like BLT and Tix, and at least one Ruby extension module exists to take advantage of these Tk extensions, the build and installation efforts are non-trivial.

Using the GTK+ Toolkit

· Because it serves as one of the core components of the popular GNOME desktop for Linux, GTK+ development should be strong for the foreseeable future. The Ruby/GTK extension is likewise under ongoing development and already exposes most or all of the GTK+ functionality.

· One potential source of problems for GTK+ (and hence Ruby/GTK) is the weakness of the Windows port of GTK+, which typically lags behind the main X Window version. It is likely, however, that these problems will be sorted out at some point with the redesigned GTK+ 2.0.

Using the FOX Toolkit

· FOX provides an excellent cross-platform GUI solution, and unlike GTK+, it works very well out of the box on both Linux and Windows. In addition to its extensive collection of modern widgets, FOX offers built-in support for drag-and-drop, OpenGL, and a wide variety of image file formats.

· One drawback for choosing FOX is the lack of printed documentation. Most of the large chain bookstores (or online booksellers) will have a large selection of reference books for both Tk and GTK+, but you’re not going to find any books on FOX programming.

Using the SWin/VRuby Extensions

· SWin and VRuby provide a fast, native solution for developing graphical user interfaces on Windows. If you don’t need to run your Ruby application on non-Windows systems, or have some alternative user interface plan for those systems, this may be the right solution for you.

· Documentation is a bit of a problem when you’re getting started with these extensions, especially if you’re not already an experienced Windows programmer. It will probably help immensely to first educate yourself about the basics of Windows programming using one of the many fine reference books on Win32 programming.

Other GUI Toolkits

· We chose to cover a handful of popular GUI toolkits for Ruby in this chapter, but that shouldn’t discourage you from investigating any of the others that look interesting to you. You should pay attention to posts on the Ruby newsgroup and mailing list, and check the Ruby Application Archive (RAA) regularly, because you never know when new choices will become available.

Choosing a GUI Toolkit

· Although Ruby is a powerful programming language for any single platform, many programmers are drawn to it because of its cross-platform nature. If you want your GUI applications written in Ruby to be similarly cross-platform, you need to be mindful of the target platforms when choosing a GUI toolkit.

· The bottom line is that there is no one-size-fits-all solution when choosing a GUI toolkit. Instead of being swayed by the hype about one toolkit versus another, invest some time to try out two or three that look promising and decide for yourself which is the best fit.

Autor:  iGEL [ 06 Mai 2004, 09:42 ]
Betreff des Beitrags: 

Moin kermit!

Erstmal willkommen an Board! :)

Wie du schon erkannt hast, gibt es zu einer ganzen Reihe von Toolkits Bindings, nicht nur die beim Windows-Installer mitgelieferten TK und FOX. Leider habe ich mit den beiden noch gar nichts gemacht und mit GTK+ hab ich nur kurz rumgespielt, aber für Linuxrechner wäre GTK+ meine erste Wahl, da ich das Handling mag und es gut aussieht ;)


Autor:  Olli [ 06 Mai 2004, 19:45 ]
Betreff des Beitrags: 

es ist etwas schade das es "noch" keine bindings fuer qt3 gibt.
das sollte aber auch in absehbarer zeit von einer aenderung betroffen sein

Autor:  leobm [ 07 Mai 2004, 18:45 ]
Betreff des Beitrags: 

Tk und QT sind beide die einzige GUI Toolkits die ordentliche mit verschiedenen encodings (utf8, shift-JIS) umgehen können. Ich bevorzuge Tk. Habe damit schon viel unter Perl gemacht und wenn man erst einmal verstanden hat wie man eigene Tk Komponenten baut ist Tk sehr mächtig. Der Style ist zwar nichtr der schönste, aber funktionell.
Wenn FOX mal besser wird werde ich vielleicht mehr mit FOX machen.

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde [ Sommerzeit ]
Powered by phpBB® Forum Software © phpBB Group