Created
May 4, 2012 19:16
-
-
Save glurp/2597110 to your computer and use it in GitHub Desktop.
Show raster files images, with properties (image and widget)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'Ruiby' | |
if ARGV.size==0 | |
Message.alert("Usage\n>ruby images.rb raster.png raster.gif ....") | |
exit | |
end | |
Ruiby.app(:width=> 800, :height=>800) do | |
vbox_scrolled(800,800) do | |
table(3,ARGV.size) do | |
ARGV.each { |fn| | |
row { | |
cell( w=label( "#"+fn ) ) | |
cell(flow(false) { properties(fn,get_config(w.pixbuf)) if w.pixbuf }) | |
cell(flow(false) { properties(fn,get_config(w),{:scroll => [300,100]})}) | |
} | |
} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment