diff options
| author | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-26 00:44:59 +0000 |
|---|---|---|
| committer | nagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-26 00:44:59 +0000 |
| commit | 55e66f6f7fbc0d1258bb9f12ade75f9cdee49da1 (patch) | |
| tree | ff587c2c5d3b0b90fa3a9c895013da4d9e5cb37d /ext/tk/sample | |
| parent | c35cb918f65e3364f4ba66d357ad9787b0226af3 (diff) | |
* ext/tk/sample/tkcombobox.rb: fix conflict with autoload definition
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample')
| -rw-r--r-- | ext/tk/sample/tkcombobox.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/tk/sample/tkcombobox.rb b/ext/tk/sample/tkcombobox.rb index 1840270951..cc51a2ffeb 100644 --- a/ext/tk/sample/tkcombobox.rb +++ b/ext/tk/sample/tkcombobox.rb @@ -221,6 +221,16 @@ end ################################################ +# don't use Ttk widget +Object.instance_eval{remove_const :TkCombobox} if Object.autoload? :TkCombobox + +# if you want to use the 'default_widget_set' selector, +#class TkCombobox < TkEntry; end +#Tk.__set_toplevel_aliases__(:Tk, TkCombobox, :TkCombobox) + + +################################################ + class TkCombobox < TkEntry include TkComposite |
