Changes
This commit is contained in:
7
lib/spawn_radio_list.rb
Normal file
7
lib/spawn_radio_list.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
def spawn_radio_list(title, text, options_arr)
|
||||
command = %(kdialog --title "#{title}" --radiolist "#{text}")
|
||||
options_arr.each_with_index do |option, i|
|
||||
command += %( #{i} "#{option}" off)
|
||||
end
|
||||
`#{command}`
|
||||
end
|
Reference in New Issue
Block a user