Sha256: 16f85777f62776cd48c2670c36e76b763744127c065529ee3c5d6bbb3045802b

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

#
#  tkextlib/bwidget/dynamichelp.rb
#                               by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#

require 'tk'
require 'tkextlib/bwidget.rb'

module Tk
  module BWidget
    module DynamicHelp
    end
  end
end

module Tk::BWidget::DynamicHelp
  include Tk
  extend Tk

  def self.__pathname
    'DynamicHelp::configure'
  end

  def __strval_optkeys
    super() << 'topbackground'
  end
  private :__strval_optkeys

  def self.__cget_cmd
    ['DynamicHelp::configure']
  end

  def self.__config_cmd
    ['DynamicHelp::configure']
  end

  def self.cget_strict(slot)
    slot = slot.to_s
    info = {}
    self.current_configinfo.each{|k,v| info[k.to_s] = v if k.to_s == slot}
    fail RuntimeError, "unknown option \"-#{slot}\""  if info.empty?
    info.values[0]
  end
  def self.cget(slot)
    self.current_configinfo(slot).values[0]
  end

  def self.add(widget, keys={})
    tk_call('DynamicHelp::add', widget, *hash_kv(keys))
  end

  def self.delete(widget)
    tk_call('DynamicHelp::delete', widget)
  end

  def self.include(klass, type)
    tk_call('DynamicHelp::include', klass, type)
  end

  def self.sethelp(path, subpath, force=None)
    tk_call('DynamicHelp::sethelp', path, subpath, force)
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
tk-win-0.2.2-x86-mingw32 lib/tkextlib/bwidget/dynamichelp.rb
tk-win-0.2.1-x86-mingw32 lib/tkextlib/bwidget/dynamichelp.rb
tk-win-0.2.0-x86-mingw32 lib/tkextlib/bwidget/dynamichelp.rb
tk_as_gem-0.1.0 ext/lib/tkextlib/bwidget/dynamichelp.rb
tk_as_gem-0.0.1 ext/lib/tkextlib/bwidget/dynamichelp.rb
tk_as_gem-0.0.0 ext/lib/tkextlib/bwidget/dynamichelp.rb