Method: TkWindow#pack_config

Defined in:
lib/tk.rb

#pack_config(slot, value = None) ⇒ Object Also known as: pack_configure



5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
# File 'lib/tk.rb', line 5172

def pack_config(slot, value=None)
  #if slot.kind_of? Hash
  #  tk_call 'pack', 'configure', epath, *hash_kv(slot)
  #else
  #  tk_call 'pack', 'configure', epath, "-#{slot}", value
  #end
  if slot.kind_of? Hash
    TkPack.configure(self, slot)
  else
    TkPack.configure(self, slot=>value)
  end
end