Method: Pc::Window#set_buttons
- Defined in:
- lib/pc/interfaces/desktop/window.rb
#set_buttons(choices = {}) ⇒ Object
18 19 20 21 22 |
# File 'lib/pc/interfaces/desktop/window.rb', line 18 def (choices = {}) = choices.map.with_index do |(key, value), index| {timeout: Time.now + 1.2, label: key, action: value, x1: 100, x2: 200, y1: 30+index*30, y2: 50+index*30} end end |