Coder Social home page Coder Social logo

zerenity's Introduction

= 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 

zerenity's People

Contributors

danlucraft avatar farrel avatar

Stargazers

Andrej Antas avatar Angus H. avatar 大関 金城 秀喜 カシオ avatar Tim Felgentreff avatar Jedediah Smith avatar Delon R. Newman avatar  avatar Count Jocular avatar

Watchers

Siggi Dünkel avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.