Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created May 18, 2015 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/e99aec71c0e34c2a70ff to your computer and use it in GitHub Desktop.
Save mvidner/e99aec71c0e34c2a70ff to your computer and use it in GitHub Desktop.
#! /usr/bin/env ruby
require "yast"
include Yast
include Yast::UIShortcuts
if Yast.ui_component == ""
Yast.ui_component = ARGV[0] || "ncurses"
end
Builtins.y2milestone("UI component: %1", Yast.ui_component)
Yast.import "UI"
UI.OpenDialog(PushButton("This is a button"))
UI.UserInput
UI.CloseDialog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment