mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* (bug fix) some widget demos * support <TkVariable object> == <Symbol> ( "coerce TkVariable" add to the TODO list :-) ) * freeze some object for security reason git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			152 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
#!/usr/bin/env ruby
 | 
						|
require 'tk'
 | 
						|
 | 
						|
TkButton.new(nil,
 | 
						|
	'text'=>"こんにちは、世界",
 | 
						|
	'command'=>proc{print "こんにちは、世界\n"; exit}
 | 
						|
).pack
 | 
						|
 | 
						|
Tk.mainloop
 |