Method: TkWindow#grid_config

Defined in:
lib/tk.rb

#grid_config(slot, value = None) ⇒ Object Also known as: grid_configure



5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
# File 'lib/tk.rb', line 5259

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