[#1582] [BUG] Regexp — sinara@...

原です。あけましておめでとうございます。

16 messages 1997/01/06

[#1705] 正規表現 単独の ? — Sinichiro Dezawa <dezawa@...>

出沢です

14 messages 1997/01/15

[#1771] rectangle of canvas widget — Noritugu Nakamura <nnakamur@...>

18 messages 1997/01/19

[#1788] Text of TkCanvas — Noritugu Nakamura <nnakamur@...>

28 messages 1997/01/20
[#1800] Re: Text of TkCanvas — matz@... (Yukihiro Matsumoto) 1997/01/21

まつもと ゆきひろです.

[#1802] Re: Text of TkCanvas — Noritugu Nakamura <nnakamur@...> 1997/01/21

[#1806] Re: Text of TkCanvas — matz@... (Yukihiro Matsumoto) 1997/01/22

まつもと ゆきひろです.

[#1816] Re: Text of TkCanvas — Noritugu Nakamura <nnakamur@...> 1997/01/22

[#1819] Re: Text of TkCanvas — matz@... (Yukihiro Matsumoto) 1997/01/22

まつもと ゆきひろです.

[#1865] ruby-1.0-960124 available — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

25 messages 1997/01/24
[#1878] Re: ruby-1.0-960124 available — WATANABE Hirofumi <watanabe@...> 1997/01/27

わたなべです.

[#1879] Re: ruby-1.0-960124 available — matz@... (Yukihiro Matsumoto) 1997/01/27

まつもと ゆきひろです.

[#1880] Re: ruby-1.0-960124 available — WATANABE Hirofumi <watanabe@...> 1997/01/27

わたなべです.

[#1890] Re: ruby-1.0-960124 available — matz@... (Yukihiro Matsumoto) 1997/01/27

まつもと ゆきひろです.

[#1926] [Dist] Mutex module — keiju@... (Keiju ISHITSUKA)

けいじゅ@SHLジャパンです.

81 messages 1997/01/28
[#1929] Re: [Dist] Mutex module — matz@... (Yukihiro Matsumoto) 1997/01/29

まつもと ゆきひろです.

[#1934] Re: [Dist] Mutex module 1997/01/29

けいじゅ@SHLジャパンです.

[#1935] Re: [Dist] Mutex module — matz@... (Yukihiro Matsumoto) 1997/01/29

まつもと ゆきひろです.

[#1938] Re: [Dist] Mutex module 1997/01/29

けいじゅ@SHLジャパンです.

[#1940] Re: [Dist] Mutex module — matz@... (Yukihiro Matsumoto) 1997/01/29

まつもと ゆきひろです.

[#1944] Re: [Dist] Mutex module 1997/01/29

けいじゅ@SHLジャパンです.

[#1947] Re: [Dist] Mutex module — matz@... (Yukihiro Matsumoto) 1997/01/29

まつもと ゆきひろです.

[#1960] Re: [Dist] Mutex module — sinara@... 1997/01/30

原です。

[#1969] Re: [Dist] Mutex module 1997/01/30

けいじゅ@SHLジャパンです.

[#1978] Re: [Dist] Mutex module — sinara@... 1997/01/30

原です。

[#1986] Re: [Dist] Mutex module 1997/01/30

けいじゅ@SHLジャパンです.

[#1989] Array as list/tupple (Re: [Dist] Mutex module) — matz@... (Yukihiro Matsumoto) 1997/01/31

まつもと ゆきひろです.

[#2008] [Request] static var? (Re: Array as list/tupple) — sinara@... 1997/01/31

原です。

[#1953] open (file descriptor) — j_kuro@... (Jun Kuroda)

黒田です.

16 messages 1997/01/29

[ruby-list:1781] Re: rectangle of canvas widget

From: matz@... (Yukihiro Matsumoto)
Date: 1997-01-20 10:35:05 UTC
List: ruby-list #1781
まつもと ゆきひろです

In message "[ruby-list:1771] rectangle of canvas widget"
    on 97/01/20, Noritugu Nakamura <nnakamur@tamaru.kuee.kyoto-u.ac.jp> writes:

|ところで、
|ruby/Tk で Scale, Image というのは使えるのでしょうか?

使えるようです.プログラムの本質的な部分だけあげると以下のよ
うになります.ただし image には例によってバグがありましたの
で,末尾に付加したパッチを当ててください.

|<Scaleの例>
|scale .s -from 0 -to 100 -showvalue yes -tickinterval 10 -length 300
|pack .s

TkScale.new {
  from 0
  to 100
  showvalue 'yes'
  tickinterval 10
  length 300
  pack
}

|<Imageの例>
|image create photo image1a -file [file join $tk_library demos images earth.gif]
|label .l1 -image image1a -bd 1 -relief sunken
|pack .l1 -side top -padx .5m -pady .5m

im = TkPhotoImage.new {
  file '/usr/local/lib/tk4.0/demos/images/earth.gif'
}
TkLabel.new {
  image im
  border 1
  relief 'sunken'
  pack 'side' => 'top', 'padx' => '.5m', 'pady' => '.5m'
}

-- patch
--- lib/tkcanvas.rb~	Tue Jul 30 09:29:10 1996
+++ lib/tkcanvas.rb	Mon Jan 20 14:55:03 1997
@@ -272,7 +277,7 @@
   def initialize(keys=nil)
     @path = $tk_image_id
     $tk_image_id = $tk_image_id.succ
-    tk_call 'image', @type, @path, *hash_kv(keys)
+    tk_call 'image', 'create', @type, @path, *hash_kv(keys)
   end
 
   def height
@@ -302,7 +307,7 @@
 
 class TkPhotoImage<TkImage
   def initialize(*args)
-    @type = 'bitmap'
+    @type = 'photo'
     super
   end
 

In This Thread