CSC/ECE 517 Fall 2010/ch1 S10 GP: Difference between revisions
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
== Standard Inbuilt Toolkit library == | == Standard Inbuilt Toolkit library == | ||
=== Overview === | === Overview === | ||
The [http://www.tkdocs.com/tutorial/index.html 'Tk' library] is provided along with the standard Ruby distribution. It is well-suited for cross-platform application development | The [http://www.tkdocs.com/tutorial/index.html 'Tk' library] is provided along with the standard Ruby distribution. Tk is an open source, platform independent toolkit. It is well-suited for cross-platform application development. Tk provides a number of widgets commonly needed to develop desktop applications such as button, menu, canvas, text, frame, label etc. | ||
=== Advantages === | === Advantages === | ||
Line 20: | Line 19: | ||
== Thirdparty Toolkits == | == Thirdparty Toolkits == | ||
=== Overview === | |||
There are a lot number of toolkit libraries for Ruby provided by third-party vendors. Mostly these are wrappers around toolkits written in C and C++. Many of these toolkits may not support cross-platform application development. | There are a lot number of toolkit libraries for Ruby provided by third-party vendors. Mostly these are wrappers around toolkits written in C and C++. Many of these toolkits may not support cross-platform application development. | ||
=== Advantages === | |||
=== Disadvantages === | |||
== Ruby Exclusive Toolkit == | == Ruby Exclusive Toolkit == | ||
=== Overview === | |||
Shoes is a library implemented exclusively for Ruby. It is one of the most popular toolkits for Ruby. | Shoes is a library implemented exclusively for Ruby. It is one of the most popular toolkits for Ruby. | ||
=== Advantages === | |||
=== Disadvantages === | |||
== Recent libraries associated with the development environment == | == Recent libraries associated with the development environment == | ||
=== Overview === | |||
Recent Ruby implementations have their own GUI facilities provided by toolkits associated with the environment. Some of them are Cocoa for MacRuby and Swing for JRuby. | Recent Ruby implementations have their own GUI facilities provided by toolkits associated with the environment. Some of them are Cocoa for MacRuby and Swing for JRuby. | ||
=== Advantages === | |||
=== Disadvantages === | |||
= Summary = | = Summary = | ||
= Conclusion = | = Conclusion = |
Revision as of 07:40, 8 September 2010
GUI Toolkits for Ruby
Traditionally, Ruby is a command line tool. Most Ruby commands are entered as text in a terminal and provide output to the user in the text form. Actually, the Ruby interpretor is not bound to any program development environment. Ruby programs can be typed in any editor and there are a lot of libraries to provide Graphical User Interface (GUI). This article discusses various GUI toolkits for Ruby, right from traditional to the most popular toolkits.
Introduction
Standard Inbuilt Toolkit library
Overview
The 'Tk' library is provided along with the standard Ruby distribution. Tk is an open source, platform independent toolkit. It is well-suited for cross-platform application development. Tk provides a number of widgets commonly needed to develop desktop applications such as button, menu, canvas, text, frame, label etc.
Advantages
- Tk is perfectly functional and easily available
- Bindings are built-in to some ruby distros
- It is easily customizable and configurable
Disadvantages
- Ugly looking and code also looks ugly
- Does not support native widgets
Thirdparty Toolkits
Overview
There are a lot number of toolkit libraries for Ruby provided by third-party vendors. Mostly these are wrappers around toolkits written in C and C++. Many of these toolkits may not support cross-platform application development.
Advantages
Disadvantages
Ruby Exclusive Toolkit
Overview
Shoes is a library implemented exclusively for Ruby. It is one of the most popular toolkits for Ruby.
Advantages
Disadvantages
Recent libraries associated with the development environment
Overview
Recent Ruby implementations have their own GUI facilities provided by toolkits associated with the environment. Some of them are Cocoa for MacRuby and Swing for JRuby.