Method: Gui.label
- Defined in:
- lib/gui.rb
.label(tx1, x, y) ⇒ Object
method to draw a label with text (tx1) and coordinates x,y in a grid
28 29 30 31 32 |
# File 'lib/gui.rb', line 28 def self.label(tx1, x, y) TkLabel.new(root){ text tx1 grid('row' => x, 'column' => y, 'padx' => 10, 'pady' => 15)} end |