1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/tk/sample/demos-en
nagai d3a8f9b361 * ext/tk/lib/tk/canvas.rb: improve coords support for canvas items.
Now, supports all of the followings.
    TkcLine.new(c, 0, 0, 100, 100, :fill=>'red')
    TkcLine.new(c, [0, 0, 100, 100], :fill=>'red')
    TkcLine.new(c, [0, 0], [100, 100], :fill=>'red')
    TkcLine.new(c, [[0, 0], [100, 100]], :fill=>'red')
    TkcLine.new(c, :coords=>[0, 0, 100, 100], :fill=>'red')
    TkcLine.new(c, :coords=>[[0, 0], [100, 100]], :fill=>'red')


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-14 09:41:59 +00:00
..
doc.org
arrow.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
bind.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
bitmap.rb
browse1
browse2 * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
button.rb
ChangeLog
ChangeLog.prev
check.rb
check2.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
clrpick.rb
colors.rb
cscroll.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
ctext.rb
dialog1.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
dialog2.rb * overrided instance methods, which are private methods on the super 2003-12-09 14:38:15 +00:00
entry1.rb
entry2.rb
entry3.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
filebox.rb
floor.rb
floor2.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
form.rb
hello
hscale.rb
icon.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
image1.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
image2.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
image3.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
items.rb * ext/tk/lib/tk/canvas.rb: improve coords support for canvas items. 2004-05-14 09:41:59 +00:00
ixset
ixset2 * add or modify some widget demo scripts 2003-08-02 21:39:23 +00:00
label.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
labelframe.rb * (bug fix) forgot to entry a widget class name of 'labelframe' widget 2003-08-02 09:58:13 +00:00
menu.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
menu84.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
menubu.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
msgbox.rb
paned1.rb * (bug fix) forgot to entry a widget class name of 'labelframe' widget 2003-08-02 09:58:13 +00:00
paned2.rb * (bug fix) forgot to entry a widget class name of 'labelframe' widget 2003-08-02 09:58:13 +00:00
patch_1.1c1
plot.rb
puzzle.rb * add or modify some widget demo scripts 2003-08-02 21:39:23 +00:00
radio.rb
radio2.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
radio3.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
README
README.1st * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
README.tkencoding * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
rmt
rolodex
rolodex-j
ruler.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
sayings.rb
search.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
spin.rb * ready to use 'validatecommand' option of TkEntry/TkSpinbox widget 2003-08-03 22:07:47 +00:00
square
states.rb
style.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
tcolor * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
tcolor.bak
text.rb * add or modify some widget demo scripts 2003-08-02 21:39:23 +00:00
timer
tkencoding.rb
twind.rb
twind2.rb * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00
unicodeout.rb modify the message and comments on the source 2003-10-17 22:36:40 +00:00
vscale.rb
widget * renewal Ruby/Tk 2004-05-01 16:09:54 +00:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Current Maintainer: 
	Jonathan Conway
	rise@knavery.net

	Please direct all bug reports/requests/suggestions to the above 
	address.


Notes:

* 	The files hello and widget have been changed to test Tk::TCL_VERSION 
	and Tk::JAPANIZED_TK before requiring tkencoding.rb to prevent an
	infinite loop.  This test was taken from a message in
	[ruby-talk:18559] by Guy Decoux.

*	The .bmp files in the images directory are X bitmaps (i.e. XBM to many
	graphics packages), not Windows bitmaps (.bmp).  You will not be
	able to use images exported by a graphics program as Windows
	bitmaps with this demo collection nor will you be able to edit the
	included images without setting the file type correctly.
	
-- Jonathan Conway, 2001-07-26


#------------------------------------------------------------------------------
# ==== Introduction. ====
#
# To create this version of the Ruby/Tk widget demo, I took the
# ruby-tk81-demos and removed all the Kanji strings and comments.  I
# have tried to restore the original English strings and comments
# using the Tcl/Tk8.2.2 version of the widget demo. 
#
# When I tried running the Kanji version, all I got was a mostly blank
# panel with a non-functional "File" button. I disovered that if all
# non-ASCII characters were replaced with blanks, then I could get the
# gutted stuff running.  
#
# Since English Ruby/Tk documentation is lacking and I needed this
# code to see how it worked and to use as the basis of my try-it
# prototype (The Ruby Yielding Interactive Toolkit), plus the fact
# that no help was forthcoming for making the Kanji version work (plus
# the fact that I can't read Kanji anyway), I decided to embark on
# this English restoration project. 
#
# Thanks to everyone who worked on the original Ruby/Tk widget demo
# (and the preceding Tcl/Tk version for that matter).  The
# comparatively simple task of changing text strings and comments has
# made me appreciate the great amount of original work that went into
# this.
#
# -- Conrad Schneiker, 2000-07-23.
#------------------------------------------------------------------------------

#------------------------------------------------------------------------------
# ==== Known bugs. ====
#
# ^C-ing the demo gives Ruby interrupt and stack message; clean exit needed.
# Font settings don't work correctly.
# Dismissing the embedded windows demo (tkwind.rb) kills the widget demo.
# Rerunning the canvas item demo from the code widow get errors.
# The "press me" button in the canvas item demo doesn't time out.
# The simple 2 d plot starts up extremely slow compared to the Tcl version.
# The first item message on the icon menu on the menu and cascades demo doesn't work.
#------------------------------------------------------------------------------


###################### Original README ########################################

  Ruby/Tk81 widget-demo			1999/08/13

					<09><>Φ<CC><CEA6>ü<E8><C3BC><C2><E7><BE><F0><CA>ʳظ<CAB3><D8B8><A6><B5><E6>
					Ω<><CEA9> <ttate@jaist.ac.jp>

Tcl/Tk8.1<A4>Ǥ<CF>unicode(UTF8)<29><><A4><AC><BA>Ѥ<CD><D1A4>졢unicode<64><65><A4>Ѵ<CA><D1B4><B9><A4>줿<A4><ECA4BF><C6>ܸ<CB><DCB8>Ǥ<A4><C7A4><A2><A4><EC>
Widget<65><74>ɽ<CB><C9BD><BC><A8><A4><B5><A4><A4>Ȥ<A4><C8A4><AC>ǽ<C4>Ǥ<A4><C7A4><B9><A1>ܥ<CB><DCA5><A2><A1><BC><A5><AB><A5>֤ˤϰ<CBA4><CFB0><CA><C1>˱ʰ椵<CAB0><E6A4B5><A4><F3><A4><C3><E6BFB4>
<0A>ʤ<A4><CAA4><E9><A4>ƺ<A4><C6BA><EE><C0><AE><A4>줿Ruby/Tk<54>Υ<A4><CEA5><B5><A5>ץ<A5><D7A5>˽<A4><CBBD><A4><C0><B5><A4>ä<B2><C3A4><A8><A1>ʲ<B0><CAB2>δĶ<CEB4><C4B6>ˤ<A4><CBA4><AA><A4>Ƥ<A4>ư<C7><C6B0>
<0A><><A4><F2>ǧ<CE><C7A7><A4><B7><A4><BF><A4>ΤǤ<CEA4><C7A4><B9>

* ruby-1.3.7,ruby-1.4.0
* tcl8.1, tk8.1
* linux-2.2

Windows(Cygwin)<29>ˤ<A4><CBA4><AA><A4>ơ<A4><C6A1><A2><A5><B5><A5>ץ<A5><D7A5><EB>ư<F2><C6B0><A4><AB><A4>ˤ<A4>ruby<62><79>-Ke<4B>Ȥ<A4><C8A4><A4><A4><A6><A5>ץ<A5><D7A5><B7><A5><E7><A5><F3><A4><F2>
<0A><><A4>Ƶ<A4>ư<AF><C6B0><A4><B5><A4><BB><A4><EB><A4>ɤ<CE><C9A4><A4><A4><BD><A4>Ǥ<A4><C7A4><B9>
					<09><><BE><F0><CA>󶡡<C4><F3B6A1A1><A7><C5>դ<CA><D5A4><B5>
					<eban@os.rim.or.jp>

----------------------------------------------------------------------------
  Ruby/Tk widget-demo 
                              version 1.1 ( 1998/07/24 )
                              <20>ʰ<B1><CAB0><E6><A1><F7>ǽ<CE><C7BD><A1><B6><E5B9A9> (nagai@ai.kyutech.ac.jp)

ɸ<><C9B8><BD><E0><C7>ۤ<C9> Tcl/Tk <20><>ĥ<C8>ѥå<D1A5><C3A5><B1><A1><BC><A5><B8><A4><F2><BC><E8><A4><EA><B9><FE><A4><F3> Ruby (<28>ʲ<B0> Ruby/Tk <20>ȸƤӤޤ<D3A4>) 
<0A>Ǥϡ<C7A4>Tk widget <20><><A4>Ѥ<CD><D1A4><A4> GUI <20>κ<A4><CEBA><EE><C0><AE><A4>Ԥ<B9><D4A4><A6><A4>Ȥ<A4><C8A4>Ǥ<A4><C7A4>ޤ<A4><DEA4><B9><A1>ºݤ<C2BA> GUI <20><><A4><F2><BA><EE>
<0A><><A4>Ƥ<A4><C6A4><A4><A4><AF><BE><EC><B9>ˤ<A4><CBA4>͡<CD><CDA1>ʼ<A4><CABC><CE><E3A4AC><A5><B5><A5>ץ<A5><D7A5>Ȥ<A4><C8A4><B7>¸<C6>ߤ<BA><DFA4><B9><A4><EB><A4><C8><CA><D8><CD>ʤΤǤ<CEA4><C7A4><B9><A4><AC>Ruby/Tk 
<0A>ˤϤ<CBA4><CFA4>Τ<CEA4><E8A4A6>Ŭ<CA><C5AC><C5>ʥ<A4><CAA5><B5><A5>ץ륹<D7A5><EBA5B9><A5><AF><A5>ץȽ<D7A5><C8BD><B8><B9><E7>¸<CF>ߤ<BA><DFA4>ޤ<A4><DEA4><BB><A4>Ǥ<A4><C7A4><B7><A4><BF><A1><A5><A4><BD><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>
<0A><><A4><AA><A4>С<A4><D0A1><A4><A4><BD><A4><CE><C2><D0><C8>ˤ<A4><CBA4>äơ<C3A4>Ruby/Tk <20><><A4><CE><CD><FD><B2><F2><A4><F2><C1><E1><A4><A4>Ȥ<A4><C8A4>Ǥ<A4><C7A4><AD><A4>ȹͤ<C8B9><CDA4><A8><A4><E9><A4>ޤ<A4><DEA4><B9>
<0A><>ö Ruby/Tk <20>Ǥ<A4> <20><> widget <20>λ<A4><CEBB><C8><CD><D1>ˡ<FD><CBA1><A4><F2><BD><AC><C6><C0><A4>Ƥ<A4><C6A4>ޤ<A4><DEA4>С<A4>Ruby <20><A4><E9A4B7><A4><A4><A5><B9><A5><AF>
<0A>ץȤ<D7A5><C8A4><F2><BA><EE><C0><AE><A4><A4>Ȥ<A4><C8A4>񤷤<C6><F1A4B7A4>ʤ<A4><CAA4>Ǥ<A4><C7A4><A4><E7A4A6><A1>ܥ<CB><DCA5><A2><A1><BC><A5><AB><A5>֤Υ<D6A4><CEA5><B9><A5><AF><A5>ץȤϡ<C8A4>Ruby/Tk 
<0A><><A4>ǽ<BA><C7BD>˽<A4><CBBD><AC><C6><C0><A4><B9><A4>ޤǤ<DEA4>Ƨ<CE><C6A7><C2>Ȥ<A4><C8A4><B7><A4><C6><CD>Ѥ<CD><D1A4>Ƥ<A4><C6A4><A4><A4><BF><A4><C0><A4><B1><A4>й<A4><D0B9><AC><A4>Ǥ<A4><C7A4><B9>

widget-demo <20>ΰܿ<CEB0><DCBF>ˤ<A4><CBA4><A2><A4>äƤϡ<C6A4><CFA1><A4><BC><A1><A4><CE><CA>ˤ<A4><CBA4>ܿ<B0><DCBF><A2><A4><B7><A4><BF><A5><B9><A5><AF><A5>ץȤ<D7A5><C8A4>󶡤<C4><F3B6A1A4>Ƥ<A4><C6A4><A4><A4><BF>
<0A><><A4>ޤ<A4><DEA4><B7><A4><BF><A1><A5><A4><B3><A4>˴<A4><CBB4>դΰդ<CEB0>ɽ<F2><C9BD><A4>ޤ<A4><DEA4><B9>

    Ω<>С<C0>JAIST (ttate@jaist.ac.jp) <20><><A4><B5> 
    ʿ<><CABF><BE>ͻ<BE> (hiramatu@cdrom.co.jp) <20><><A4><B5>

ʿ<><CABF><BE><BE><A4><B5><A4>ˤ<A4><CBA4><E8> Ruby/Tk <20><><C6><FE><CC><E7> Web page (http://www.cdrom.co.jp/~hiramatu/) 
<0A><> Ruby/Tk <20>ν<A4><CEBD><AC><C6><C0>ͭ<CB>ѤȻפ<C8BB><D7A4>ޤ<A4><DEA4>Τǡ<CEA4><C7A1><A4><A4>Ҥ<A4><D2A4><B4><BB>Ȥ<BE><C8A4><AF><A4><C0><A4><B5><A4><A4>

<0A>ޤ<A4><DEA4><BF><A1><A4><C1><B0> (maebashi@iij.ad.jp) <20><><A4><B5><A4><F3><A4>Ϥ<A4><CFA4><B8><A4>Ȥ<A4><C8A4>ơ<A4>widget-demo <20>ΰܿ<CEB0><DCBF>˺ݤ<CBBA>
<0A><>ɬ<C6>פȤʤä<CAA4> Ruby <20><> Tk <20><>Ϣ<D8><A5>֥<A5><D6A5><A5><EABDA4><C0>ˤĤ<CBA4><C4A4>ơ<A4><C6A1><A4><CC><E4><C2><EA><C5><C0><A1>Х<A5><D0A5>λ<A4>Ŧ<D8><C5A6><A4><F2>
<0A>Ƥ<A4><C6A4><A4><A4><BF><A4><C0><A4><A4><A4><BF><CA><FD><A1>ˤⴶ<CBA4><E2B4B6><BC>פ<C3><D7A4>ޤ<A4><DEA4><B9>

<0A><><A4><BD><A4>ƺǸ<C6BA><C7B8>˺<A4><CBBA><C7><C2>δ<A4><CEB4>դ<BC> Ruby <20>߷׼Ԥ<D7BC> <20>ޤĤ<DEA4><C4A4><E2> <20><A4>Ҥ<A4> (matz@netlab.co.jp) 
<0A><><A4><B5><A4><F3><A4><CB><CA><FB><A4><B2><A4><BF><A4>Ȼפ<C8BB><D7A4>ޤ<A4><DEA4><B9>