mirror of
https://github.com/ruby/ruby.git
synced 2025-09-17 09:33:59 +02:00
* ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: fix memory leak.
* ext/tk/lib/tk.rb: avoid trouble when finalize TclTkIp. * ext/tk/lib/tk.rb, ext/tk/lib/tk/*: help to fix troubles when use Ttk widgets on old Tk scripts. * ext/tk/sample/*: update and add demo stcipts. some of them are introduction about new features of Tcl/Tk8.5. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
461d682980
commit
20b20bb72a
186 changed files with 5715 additions and 923 deletions
|
@ -18,7 +18,9 @@ $unicodeout_demo = TkToplevel.new {|w|
|
|||
positionWindow(w)
|
||||
}
|
||||
|
||||
TkLabel.new($unicodeout_demo,
|
||||
base_frame = TkFrame.new($unicodeout_demo).pack(:fill=>:both, :expand=>true)
|
||||
|
||||
TkLabel.new(base_frame,
|
||||
:font=>$font, :wraplength=>'5.4i', :justify=>:left,
|
||||
:text=><<EOL).pack(:side=>:top)
|
||||
これは,Tkにおける非欧米文字集合を用いる言語に対するサポートについての\
|
||||
|
@ -40,7 +42,7 @@ Tcl
|
|||
EOL
|
||||
#'
|
||||
|
||||
TkFrame.new($unicodeout_demo){|f|
|
||||
TkFrame.new(base_frame){|f|
|
||||
pack(:side=>:bottom, :fill=>:x, :pady=>'2m')
|
||||
|
||||
TkButton.new(f, :text=>'閉じる', :width=>15, :command=>proc{
|
||||
|
@ -53,7 +55,7 @@ TkFrame.new($unicodeout_demo){|f|
|
|||
}).pack(:side=>:left, :expand=>true)
|
||||
}
|
||||
|
||||
wait_msg = TkLabel.new($unicodeout_demo,
|
||||
wait_msg = TkLabel.new(base_frame,
|
||||
:text=>"フォント読み込みの完了まで" +
|
||||
"しばらくお待ち下さい...",
|
||||
:font=>"Helvetica 12 italic").pack
|
||||
|
@ -68,8 +70,8 @@ class Unicodeout_SampleFrame < TkFrame
|
|||
# @@font = 'Newspaper 12'
|
||||
# @@font = '{New century schoolbook} 12'
|
||||
|
||||
def initialize()
|
||||
super($unicodeout_demo)
|
||||
def initialize(base)
|
||||
super(base)
|
||||
grid_columnconfig(1, :weight=>1)
|
||||
end
|
||||
|
||||
|
@ -84,7 +86,7 @@ class Unicodeout_SampleFrame < TkFrame
|
|||
l.grid_config(:padx, '1m')
|
||||
end
|
||||
end
|
||||
f = Unicodeout_SampleFrame.new
|
||||
f = Unicodeout_SampleFrame.new(base_frame)
|
||||
f.pack(:expand=>true, :fill=>:both, :padx=>'2m', :pady=>'1m')
|
||||
|
||||
# Processing when some characters are missing might take a while, so make
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue