The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Mixing some GUI elements into your Ruby program

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Caleb Tennis

Posts: 48
Nickname: ctennis
Registered: Sep, 2005

Caleb Tennis is a software developer for a small research and development company.
Mixing some GUI elements into your Ruby program Posted: Sep 28, 2005 12:31 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Caleb Tennis.
Original Post: Mixing some GUI elements into your Ruby program
Feed Title: Tarkblog
Feed URL: http://blog.casey-sweat.us/library/shared/happyUrl/fnf_msdn.asp?Redirect="http://blog.casey-sweat.us/404/default.asp"
Feed Description: Caleb's personal weblog about his experiences in life, langauges, and laughter.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Caleb Tennis
Latest Posts From Tarkblog

Advertisement
In Ruby, when you’ve got to grab some user input, a quick way of doing it is with a gets: puts "What is your name?" name = gets puts "Hi #{name}" But, we can make the interaction so much more pleasant through QtRuby: require 'Qt' Qt::Application.new(ARGV) ok = Qt::Boolean.new name = Qt::InputDialog::getText(”My Application”, “Enter your name”,   Qt::LineEdit::Normal, nil, ok) if(!ok.nil?)   puts “Hi #{name}” else   raise “The user didn’t [...]

Read: Mixing some GUI elements into your Ruby program

Topic: On my way to JAOO in Århus Previous Topic   Next Topic Topic: You've Dazzled Us, Now Here is Your Cozy Chair

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use