summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib/tkentry.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-28 06:53:33 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-28 06:53:33 +0000
commita11a58b128acb5411bb35130df3bb945d8013b55 (patch)
tree21caf0873cd632bd6beb8d91fc1da15d29aca427 /ext/tk/lib/tkentry.rb
parent617316c5e8a1f14eef4dcb85b278a81875edb6bb (diff)
downloadruby-a11a58b128acb5411bb35130df3bb945d8013b55.tar.gz
ruby-a11a58b128acb5411bb35130df3bb945d8013b55.tar.xz
ruby-a11a58b128acb5411bb35130df3bb945d8013b55.zip
* eval.c (rb_mod_include): load modules in argument order.
* st.c (st_init_table_with_size): num_bins should be prime numbers (no decrement). * st.c (rehash): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkentry.rb')
-rw-r--r--ext/tk/lib/tkentry.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/ext/tk/lib/tkentry.rb b/ext/tk/lib/tkentry.rb
index 7af3f2674..f301bbdac 100644
--- a/ext/tk/lib/tkentry.rb
+++ b/ext/tk/lib/tkentry.rb
@@ -55,8 +55,12 @@ class TkEntry<TkLabel
end
end
- def create_self
- tk_call 'entry', @path
+ def create_self(keys)
+ if keys and keys != None
+ tk_call 'entry', @path, *hash_kv(keys)
+ else
+ tk_call 'entry', @path
+ end
end
def bbox(index)
@@ -191,8 +195,12 @@ class TkSpinbox<TkEntry
WidgetClassName
end
- def create_self
- tk_call 'spinbox', @path
+ def create_self(keys)
+ if keys and keys != None
+ tk_call 'spinbox', @path, *hash_kv(keys)
+ else
+ tk_call 'spinbox', @path
+ end
end
def identify(x, y)