From 9ff1e787f915539b1980654e3d3d2013ff5c81d2 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Mon, 7 Jul 2008 07:38:25 +0000 Subject: wrong commit; sorry git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_6_269@17938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby_1_8_6/ext/tk/sample/binstr_usage.rb | 39 -------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 ruby_1_8_6/ext/tk/sample/binstr_usage.rb (limited to 'ruby_1_8_6/ext/tk/sample/binstr_usage.rb') diff --git a/ruby_1_8_6/ext/tk/sample/binstr_usage.rb b/ruby_1_8_6/ext/tk/sample/binstr_usage.rb deleted file mode 100644 index 91692856f9..0000000000 --- a/ruby_1_8_6/ext/tk/sample/binstr_usage.rb +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env ruby - -require "tk" - -TkMessage.new(:width=>360, :text=><ImgFile) -p ph1.configinfo - -b_str = Tk::BinaryString(IO.read(ImgFile)) -p [b_str, b_str.encoding] - -ph2 = TkPhotoImage.new(:data=>b_str) -p ph2.configinfo -p ph2.data(:grayscale=>true) - -ph3 = TkPhotoImage.new() -ph3.put(ph2.data(:grayscale=>true)) - -f = TkFrame.new.pack -TkButton.new(:parent=>f, :image=>ph1, :command=>proc{exit}).pack(:side=>:left) -TkButton.new(:parent=>f, :image=>ph2, :command=>proc{exit}).pack(:side=>:left) -TkButton.new(:parent=>f, :image=>ph3, :command=>proc{exit}).pack(:side=>:left) - -Tk.mainloop -- cgit v1.2.3