Sha256: f9425b2bfb17dd158d8ec0a85f6a1cd0efba27d73ba13fc2625c30550af19f66
Contents?: true
Size: 945 Bytes
Versions: 3
Compression:
Stored size: 945 Bytes
Contents
# # 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')) if b if TkCore::WITH_RUBY_VM ### Ruby 1.9 !!!! win.instance_exec(self, &b) else win.instance_eval(&b) end end 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tk_as_gem-0.1.0 | ext/lib/tkextlib/bwidget/combobox.rb |
tk_as_gem-0.0.1 | ext/lib/tkextlib/bwidget/combobox.rb |
tk_as_gem-0.0.0 | ext/lib/tkextlib/bwidget/combobox.rb |