Class: Yast::ContextMenuClass

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

Instance Method Summary collapse

Instance Method Details

#mainObject



30
31
32
# File 'library/general/src/modules/ContextMenu.rb', line 30

def main
  Yast.import "UI"
end

#Simple(items) ⇒ Object



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

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

  Convert.to_symbol(UI.UserInput)
end