From 54ec1c4fe81672ca66f327ef6ae170f458cd79e5 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 15 Aug 2007 20:57:30 +0000 Subject: sorry. I made wrong tags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_5_54@13009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb | 45 ---------------------- 1 file changed, 45 deletions(-) delete mode 100644 ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb (limited to 'ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb') diff --git a/ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb b/ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb deleted file mode 100644 index 31f71c3aaf..0000000000 --- a/ruby_1_8_5/ext/tk/lib/tkextlib/bwidget/combobox.rb +++ /dev/null @@ -1,45 +0,0 @@ -# -# tkextlib/bwidget/combobox.rb -# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) -# - -require 'tk' -require 'tk/entry' -require 'tkextlib/bwidget.rb' -require 'tkextlib/bwidget/listbox' -require 'tkextlib/bwidget/spinbox' - -module Tk - module BWidget - class ComboBox < Tk::BWidget::SpinBox - end - end -end - -class Tk::BWidget::ComboBox - include Scrollable - - TkCommandNames = ['ComboBox'.freeze].freeze - WidgetClassName = 'ComboBox'.freeze - WidgetClassNames[WidgetClassName] = self - - def get_listbox(&b) - win = window(tk_send_without_enc('getlistbox')) - win.instance_eval(&b) if b - win - end - - def icursor(idx) - tk_send_without_enc('icursor', idx) - end - - def post - tk_send_without_enc('post') - self - end - - def unpost - tk_send_without_enc('unpost') - self - end -end -- cgit v1.2.3