Created
May 18, 2015 11:55
-
-
Save mvidner/e99aec71c0e34c2a70ff to your computer and use it in GitHub Desktop.
Example usage of https://github.com/yast/yast-ruby-bindings/pull/142
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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