Module: Tk::Tile::TileWidget
- Includes:
- Grid
- Included in:
- Button, CheckButton, ComboBox, Entry, Frame, Label, LabelFrame, MenuButton, Notebook, PanedWindow, Progressbar, RadioButton, Scale, Scrollbar, Separator, Sizegrip, Treeview
- Defined in:
- lib/ffi-tk/widget/tile.rb
Instance Method Summary
collapse
Methods included from Grid
anchor, bbox, columnconfigure, configure, forget, #grid_anchor, #grid_bbox, #grid_columnconfigure, #grid_configure, #grid_forget, #grid_info, #grid_location, #grid_propagate, #grid_remove, #grid_rowconfigure, #grid_size, #grid_slave, #grid_slaves, info, location, propagate, remove, rowconfigure, size, slave, slaves
Instance Method Details
#grid(options) ⇒ Object
53
54
55
|
# File 'lib/ffi-tk/widget/tile.rb', line 53
def grid(options)
grid_configure options
end
|
#state(new_state = None) ⇒ Object
43
44
45
|
# File 'lib/ffi-tk/widget/tile.rb', line 43
def state(new_state = None)
ttk_state(new_state)
end
|
#style(layout_spec, name = tk_pathname) ⇒ Object
47
48
49
|
# File 'lib/ffi-tk/widget/tile.rb', line 47
def style(layout_spec, name = tk_pathname)
Tk::Tile::Style.layout(name, layout_spec)
end
|
#ttk_state(new_state = None) ⇒ Object
35
36
37
38
39
40
41
|
# File 'lib/ffi-tk/widget/tile.rb', line 35
def ttk_state(new_state = None)
if new_state == None
execute(:state).to_a
else
execute_only(:state, new_state)
end
end
|