github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

farrel / zerenity forked from danlucraft/zerenity

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 3
    • 2
  • Source
  • Commits
  • Network (2)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Pure Ruby implementation of Gnome's Zenity with extra features — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added colorselection to main require file 
Farrel Lifson (author)
Sun Feb 15 10:56:20 -0800 2009
commit  80c76bba2239c0de3b037bb341fac96eef3ba914
tree    c8d6337c5262d3dcd4fc0650965e4510959e4bef
parent  f02a600f0d5751df5a821b90ca68b81a8f439615
zerenity /
name age
history
message
file CHANGELOG Loading commit data...
file README Sat Feb 14 13:58:29 -0800 2009 Typo corrected [Farrel Lifson]
file Rakefile
directory examples/ Sat Feb 14 13:52:40 -0800 2009 ColorSelection dialog and Rakefile [Farrel Lifson]
directory lib/
directory test/ Sat Feb 14 02:42:26 -0800 2009 Entries have :string option that is the default... [danlucraft]
README
= Zerenity

== Version
1.3

== Author
Farrel Lifson http://www.lifson.info http://www.aimred.com

== Contributors
Daniel Lucraft http://www.daniellucraft.com

== Synopsis 
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.

== 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
* Color selection

== Dependencies
Zerenity requires GTK2(http://www.gtk.org) and Ruby/GTK2(http://ruby-gnome2.sourceforge.jp/hiki.cgi).

== Installation
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 Github repository at http://github.com/farrel/zerenity/tree/master 

== 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 - 2009 Farrel Lifson 
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server