mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
c35cb918f6
commit
55e66f6f7f
1 changed files with 10 additions and 0 deletions
|
@ -219,6 +219,16 @@ EOD
|
|||
end
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue