зеркало из https://github.com/github/ruby.git
* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
3edf43c4cf
Коммит
3486311d54
|
@ -1,3 +1,8 @@
|
|||
Sat Dec 22 01:10:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
|
||||
ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668]
|
||||
|
||||
Sat Dec 22 00:56:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* sample/test.rb (valid_syntax): force_encoding input script.
|
||||
|
|
|
@ -94,27 +94,27 @@ TkText.new($bind_demo){|t|
|
|||
}
|
||||
d1.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'items.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'items.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d2.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'plot.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'plot.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d3.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'ctext.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'ctext.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d4.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'arrow.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'arrow.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d5.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'ruler.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'ruler.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d6.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'cscroll.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'cscroll.rb'].join(File::Separator)}`)
|
||||
})
|
||||
|
||||
TkTextMarkInsert.new(t, '0.0')
|
||||
|
|
|
@ -92,27 +92,27 @@ TkText.new($bind_demo){|t|
|
|||
}
|
||||
d1.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'items.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'items.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d2.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'plot.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'plot.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d3.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'ctext.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'ctext.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d4.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'arrow.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'arrow.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d5.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'ruler.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'ruler.rb'].join(File::Separator)}`)
|
||||
})
|
||||
d6.bind('1',
|
||||
proc{
|
||||
eval_samplecode(`cat #{[$demo_dir,'cscroll.rb'].join(File::Separator)\}`)
|
||||
eval_samplecode(`cat #{[$demo_dir,'cscroll.rb'].join(File::Separator)}`)
|
||||
})
|
||||
|
||||
TkTextMarkInsert.new(t, '0.0')
|
||||
|
|
|
@ -23,10 +23,10 @@ c.destroy
|
|||
#sti_conf = [ [10, 10, 180, 180], "Sticker äöüß@²³¼½¾", :center ]
|
||||
#txt_conf = [ [210, 210], "Text äöüß@²³¼½¾", :center ]
|
||||
sti_conf = [ [10, 10, 350, 350],
|
||||
Tk::UTF8_String('Sticker \u00E4\u00F6\u00FC\u00DF\u0040\u00B2\u00B3\u00BC\u00BD\\u00BE')
|
||||
Tk::UTF8_String('Sticker \u00E4\u00F6\u00FC\u00DF\u0040\u00B2\u00B3\u00BC\u00BD\u00BE'),
|
||||
:center ]
|
||||
txt_conf = [ [250, 250],
|
||||
Tk::UTF8_String('Text \u00E4\u00F6\u00FC\u00DF\u0040\u00B2\u00B3\u00BC\u00BD\\u00BE')
|
||||
Tk::UTF8_String('Text \u00E4\u00F6\u00FC\u00DF\u0040\u00B2\u00B3\u00BC\u00BD\u00BE'),
|
||||
:center ]
|
||||
|
||||
#p sti_conf
|
||||
|
|
Загрузка…
Ссылка в новой задаче