Method: Tk::Tile::Style.layout

Defined in:
lib/tkextlib/tile/style.rb

.layout(style = nil, spec = nil) ⇒ Object



220
221
222
223
224
225
226
227
228
229
230
231
232
# File 'lib/tkextlib/tile/style.rb', line 220

def layout(style=nil, spec=nil)
  if style.kind_of?(Hash)
    spec = style
    style = nil
  end
  style = '.' unless style

  if spec
    tk_call(TkCommandNames[0], 'layout', style, spec)
  else
    _style_layout(list(tk_call(TkCommandNames[0], 'layout', style)))
  end
end