Skip to content

Instantly share code, notes, and snippets.

@glurp
Created May 4, 2012 19:16
Show Gist options
  • Save glurp/2597110 to your computer and use it in GitHub Desktop.
Save glurp/2597110 to your computer and use it in GitHub Desktop.
Show raster files images, with properties (image and widget)
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