blob: 033dca33c6888505ccf32434f9fac57229543148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
|
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
åé¸å
端大æ
å ±ç§å¦ç 究ç§
ç«ç³ <ttate@jaist.ac.jp>
Tcl/Tk8.1ã§ã¯unicode(UTF8)ãæ¡ç¨ãããunicodeã«å¤æãããæ¥æ¬èªã§ããã°
Widgetã«è¡¨ç¤ºããããã¨ãå¯è½ã§ããæ¬ã¢ã¼ã«ã¤ãã«ã¯ä»¥åã«æ°¸äºãããä¸å¿ã¨
ãªããã¦ä½æãããRuby/Tkã®ãµã³ãã«ã«ä¿®æ£ãå ãã以ä¸ã®ç°å¢ã«ããã¦ã§åä½
ã確èªãããã®ã§ãã
* ruby-1.3.7,ruby-1.4.0
* tcl8.1, tk8.1
* linux-2.2
Windows(Cygwin)ã«ããã¦ããµã³ãã«ãåããã«ã¯rubyã-Keã¨ãããªãã·ã§ã³ãä»
ãã¦èµ·åãããã¨è¯ãããã§ãã
æ
å ±æä¾ï¼æ¸¡è¾ºãã
<eban@os.rim.or.jp>
----------------------------------------------------------------------------
Ruby/Tk widget-demo
version 1.1 ( 1998/07/24 )
æ°¸äºï¼ ç¥è½ï¼ä¹å·¥å¤§ (nagai@ai.kyutech.ac.jp)
æ¨æºé
å¸ã® Tcl/Tk æ¡å¼µããã±ã¼ã¸ãåãè¾¼ãã Ruby (ä»¥ä¸ Ruby/Tk ã¨å¼ã³ã¾ã)
ã§ã¯ï¼Tk widget ãç¨ãã GUI ã®ä½æãè¡ããã¨ãã§ãã¾ãï¼å®éã« GUI ãä½æ
ãã¦ããå ´åã«ã¯æ§ã
ãªå®ä¾ããµã³ãã«ã¨ãã¦åå¨ããã¨ä¾¿å©ãªã®ã§ããï¼Ruby/Tk
ã«ã¯ãã®ãããªé©å½ãªãµã³ãã«ã¹ã¯ãªããéåã¯åå¨ãã¾ããã§ããï¼ããã«å¯¾ãï¼
æ¡å¼µããã±ã¼ã¸ã®å
ã§ãã Tcl/Tk ã«ã¯ï¼Tk widget ãç¨ãã¦ã©ã®ãããªãã¨ãã§
ãããã示ããã®ã¨ã㦠widget-demo ãåå¨ãããï¼Tcl/Tk ãç¨ãã GUI ã®ä½æ
ãç¿å¾ããéã®ä»£è¡¨çãµã³ãã«ã¨ãªã£ã¦ãã¾ãï¼æ¬ã¢ã¼ã«ã¤ãã¯ï¼Ruby/Tk ã®ç¿å¾ã®
ããã®ä»£è¡¨çãªãµã³ãã«ã¹ã¯ãªããã¨ãã¹ãï¼Tcl/Tk ã® widget-demo ã移æ¤ããã
ã®ã§ãï¼
æ¬ã¢ã¼ã«ã¤ãã«å«ã¾ããã¹ã¯ãªãããå®è¡ããããã«ã¯ï¼ruby-1.1c2 以ä¸ã§ããã
ã¨ãå¿
è¦ã§ãï¼1.1c1 ã®å ´åã¯ï¼æ¬ã¢ã¼ã«ã¤ãã«å«ã¾ãã patck_1.1c1 ã Ruby ã®
ã©ã¤ãã©ãªã«ãã¦ã¦ãã ããï¼çµã¿è¾¼ã Tk ã®ãã¼ã¸ã§ã³ã¯ï¼4.2 ã§ã 8.0 ã§ãä¿®
æ£ãªãåãããã¯ãã§ãï¼ãã ãï¼æ¥æ¬èªçã§ã®ç§»æ¤ã¨ãªã£ã¦ããããï¼æ¥æ¬èªåã
ãã Tk ããå©ç¨ãã ããï¼ã¹ã¯ãªããã®ãã¹ãã¯ï¼Tk4.2jp 㨠Tk8.0jp ã®ä¸ã§è¡
ãã¾ãã (å®ç§ã«ã§ã¯ãªãã§ãã)ï¼
æ¬ã¢ã¼ã«ã¤ãã«å«ã¾ããã¹ã¯ãªããã®å¤ãã¯ï¼å
ã¨ãªã£ã¦ãã Tcl/Tk çã«æ¯è¼çè¿
ãã¹ã¯ãªããè¨è¿°ã¨ãªãããã«ãã¦ãã¾ãï¼ãã®ããï¼Ruby/Tk ã®ãµã³ãã«ã¨è¨ãã«
ã¯ï¼ãã¾ã Ruby ããããªãã¨ãè¨ããã§ãããï¼ã«ããããããï¼ãã®ãããªè¨è¿°
ãåã£ã¦ããçç±ã¯ï¼Ruby/Tk ã®ããã¥ã¡ã³ãä¸è¶³ã«ããã¾ãï¼
Tcl/Tk ã«ã¯é©å½ãªåèæ¸ãä½åãåå¨ãã¦ãã¾ãããï¼Ruby/Tk ã¹ã¯ãªãããä½æ
ããéã¯ï¼ãã®ãã㪠Tcl/Tk ã®åèæ¸ã§æ
å ±ãè£ããªããä½æãããã¨ã«ãªãã¨æ
ãã¾ãï¼å widget ã®ä½¿ç¨ä¾ã¨ãã¦ï¼Tcl/Tk ã® widget-demo ãåç
§ãããã¨ããã
ã§ãããï¼Ruby/Tk çã®è¨è¿°ã widget-demo ã Tcl/Tk çã®è¨è¿°ã«è¿ããã®ã«ãã¦
ããã°ï¼ãã®å¯¾æ¯ã«ãã£ã¦ï¼Ruby/Tk ã®ç解ãæ©ãããã¨ãã§ããã¨èãããã¾ãï¼
ä¸æ¦ Ruby/Tk ã§ã® å widget ã®ä½¿ç¨æ¹æ³ãç¿å¾ãã¦ãã¾ãã°ï¼Ruby ãããã¹ã¯ãª
ãããä½æãããã¨ã¯é£ãããªãã§ãããï¼æ¬ã¢ã¼ã«ã¤ãã®ã¹ã¯ãªããã¯ï¼Ruby/Tk
ãæåã«ç¿å¾ããã¾ã§ã®è¸å°ã¨ãã¦å©ç¨ãã¦ããã ããã°å¹¸ãã§ãï¼
widget-demo ã®ç§»æ¤ã«ããã£ã¦ã¯ï¼æ¬¡ã®æ¹ã«ã移æ¤ããã¹ã¯ãªãããæä¾ãã¦ããã
ãã¾ããï¼ããã«æè¬ã®æã表ãã¾ãï¼
ç«ç³ï¼ JAIST (ttate@jaist.ac.jp) ãã
å¹³æ¾ç¥¥å² (hiramatu@cdrom.co.jp) ãã
å¹³æ¾ããã«ãã Ruby/Tk å
¥éã® Web page (http://www.cdrom.co.jp/~hiramatu/)
ã Ruby/Tk ã®ç¿å¾ã«æç¨ã¨æãã¾ãã®ã§ï¼ãã²ãåç
§ãã ããï¼
ã¾ãï¼åæ© (maebashi@iij.ad.jp) ãããã¯ããã¨ãã¦ï¼widget-demo ã®ç§»æ¤ã«éã
ã¦å¿
è¦ã¨ãªã£ã Ruby ã® Tk é¢é£ã©ã¤ãã©ãªä¿®æ£ã«ã¤ãã¦ï¼åé¡ç¹ï¼ãã°ã®ææãã
ã¦ããã ããæ¹ã
ã«ãæè¬è´ãã¾ãï¼
ããã¦æå¾ã«æ大ã®æè¬ã Ruby è¨è¨è
ã® ã¾ã¤ã㨠ããã²ã (matz@netlab.co.jp)
ããã«æ§ãããã¨æãã¾ãï¼
|