Class: Tk::Root

Inherits:
Object
  • Object
show all
Defined in:
lib/tk_paradise/tk_classes/root.rb

Instance Method Summary collapse

Instance Method Details

#move(x = 0, y = 0) ⇒ Object

#

move

This will re-position the tk-root widget to the specified position, similar to how ruby-gtk works.

#


17
18
19
20
21
22
# File 'lib/tk_paradise/tk_classes/root.rb', line 17

def move(
    x = 0,
    y = 0
  )
  root.geometry("+#{x}+#{y}") # This will only specify the x and y coordinates
end