Class: Yast::ContextMenuClass

Inherits:
Module
  • Object
show all
Defined in:
library/general/src/modules/ContextMenu.rb

Instance Method Summary collapse

Instance Method Details

#mainObject



32
33
34
# File 'library/general/src/modules/ContextMenu.rb', line 32

def main
  Yast.import "UI"
end

#Simple(items) ⇒ Object



36
37
38
39
40
41
# File 'library/general/src/modules/ContextMenu.rb', line 36

def Simple(items)
  items = deep_copy(items)
  UI.OpenContextMenu(term(:menu, items))

  Convert.to_symbol(UI.UserInput)
end