Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2676

Re: Creating a full application with Ruby

From jake kaiden <jakekaiden@yahoo.com>
Newsgroups comp.lang.ruby
Subject Re: Creating a full application with Ruby
Date 2011-04-12 07:16 -0500
Organization Service de news de lacave.net
Message-ID <87b367ae97c68d243dbb08a0d60bcd8a@ruby-forum.com> (permalink)
References <8e0e0842a3439de88c0617cc8e5553a7@ruby-forum.com> <24192d008f7229f15b9292ee00d12689@ruby-forum.com>

Show all headers | View raw


Fily Salas wrote in post #992195:

> is it possible to make small animations with
> Ruby? If yes, is this what the GUI is for?
>

  hi fily -

   simple animations are easy with gtk2...
http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gdk::PixbufAnimation

for example:

require 'gtk2'

  win = Gtk::Window.new()

  anim = Gdk::PixbufAnimation.new("TradyBlix.gif")
  image = Gtk::Image.new(anim)

  win.add(image)
  win.show_all

  win.signal_connect("destroy"){Gtk.main_quit}

Gtk.main

  "TradyBlix.gif" is a simple animation i made in gimp.

  i don't know about animations with wxRuby, as i don't use it, but it's
probably also possible.


> Do I need a separate program to package the application?

  ruby apps can be made executable (so you don't have to type "ruby"
before the app name to run it...  how you do that depends on your
system, and the target system - there's plenty of info with a google
search.

  have fun...

  -j

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-11 15:52 -0500
  Re: Creating a full application with Ruby 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-11 18:38 -0500
  Re: Creating a full application with Ruby jake kaiden <jakekaiden@yahoo.com> - 2011-04-11 19:03 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-11 20:33 -0500
    Re: Creating a full application with Ruby jake kaiden <jakekaiden@yahoo.com> - 2011-04-12 07:16 -0500
      Re: Creating a full application with Ruby ashbb <ashbbb@gmail.com> - 2011-04-12 07:55 -0500
        Re: Creating a full application with Ruby jake kaiden <jakekaiden@yahoo.com> - 2011-04-12 08:35 -0500
    Re: Creating a full application with Ruby ashbb <ashbbb@gmail.com> - 2011-04-12 07:48 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-12 09:09 -0500
    Re: Creating a full application with Ruby 7stud -- <bbxx789_05ss@yahoo.com> - 2011-04-12 13:54 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-12 15:10 -0500
    Re: Creating a full application with Ruby Steve Klabnik <steve@steveklabnik.com> - 2011-04-12 15:27 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-12 20:12 -0500
    Re: Creating a full application with Ruby ashbb <ashbbb@gmail.com> - 2011-04-13 09:45 -0500
    Re: Creating a full application with Ruby Steve Klabnik <steve@steveklabnik.com> - 2011-04-13 09:58 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-13 12:03 -0500
    Re: Creating a full application with Ruby Steve Klabnik <steve@steveklabnik.com> - 2011-04-13 13:37 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-13 20:31 -0500
    Re: Creating a full application with Ruby Steve Klabnik <steve@steveklabnik.com> - 2011-04-13 21:03 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-14 07:07 -0500
    Re: Creating a full application with Ruby ashbb <ashbbb@gmail.com> - 2011-04-14 08:41 -0500
  Re: Creating a full application with Ruby Fily Salas <fs_tigre@hotmail.com> - 2011-04-14 10:53 -0500

csiph-web