Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
[ANN] Zerenity 1.2
Farrel Lifson
12/15/2007 4:48:00 PM
== Synopsis
Zerenity is an almost clone of
Zenity(
http://freshmeat.net/proje...
) for Ruby. It allows for
the easy creation of simple graphical dialogs from a Ruby script.
== Changelog for Zerenity 1.2
* Added the scale dialog, allowing the user to use a slider to choose
a numerical value.
== Features
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
* Sliding scales
== Dependencies
Zerenity requires GTK2(
http://w...
) and
Ruby/GTK2(
http://ruby-gnome2.sourceforge.j...
).
== Installation
Zerenity is avaiable as a Ruby gem from
http://zerenity.googlecode.com/files/zereni...
. Links to the
latest release can be found at
http://www.aimred.com/project...
.
The code is also available via it's Subversion repository at
http://zerenity.googlecod...
== Example Usage
=== User Input and Display
require 'zerenity'
if (name = Zerenity::Entry(:text=>"What is your name?"))
Zerenity::Info(:text=>"Hello #{name}")
else
puts "No name entered"
end
=== Progress
require 'zerenity'
fileList = filesToProcess(folder)
Zerenity::Progress(:text=>'Processing files',:autoClose=>true) do |progress|
fileList.each_index do |file,index|
processFile(file)
progress.update(index/fileList.length,"#{100*index/fileList.length}%
processed...")
end
end
== License
Zerenity is released under the BSD license.
== Copyright
(c) 2006-2007 Aimred cc
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
[ANN] Zerenity 1.2
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password