Zerenity is an almost clone of
Zenity(http://freshmeat.net/projects/zenity) for Ruby. It allows for
the easy creation of simple graphical dialogs from a Ruby script.
= Zerenity Changelog
* From this version the OK button is set as the default widget. Pressing Enter
in a dialog will cause it to be fired. If you do not want your dialog to have
this behavior set the :activatesDefault option to false. Note that
(List, FileSelection and TextInfo when :editable is set) do not
allow this as Enter
could be used for other actions. Originally suggested by Justin Collins.
* Instead of passing a Gtk::VBox to the build and retrieve_selection
pass in the parent Gtk::Dialog.
Zerenity allows for the creation of the following dialogs
* Date selection
* Text entry
* Error display
* File/directory selection
* Information display
* List display and selection
* Progress display
* Question display
* Text information display and editing
* Warning display
Zerenity is avaiable as a Ruby gem. Links to the latest release can be
found at http://www.aimred.com/files/projects/zerenity.
The code is also available via it's Subversion repository at
== Example Usage
=== User Input and Display
if (name = Zerenity::Entry(:text=>"What is your name?"))
puts "No name entered"
fileList = filesToProcess(folder)
Zerenity::Progress(:text=>'Processing files',:autoClose=>true) do |progress|
fileList.each_index do |file,index|
Zerenity is released under the BSD license.
(c) 2006 Farrel Lifson