Created
January 23, 2017 08:37
-
-
Save mvidner/489fea3d23e223e3f6c256a58f715424 to your computer and use it in GitHub Desktop.
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
# encoding: utf-8 | |
module Yast | |
class ReplacePoint1Client < Client | |
def main | |
Yast.import "UI" | |
UI.OpenDialog( | |
VBox( | |
ReplacePoint(Id("rp"), Label("This is a label with a string Id")), | |
PushButton(Id(:change), "Change") | |
) | |
) | |
UI.UserInput | |
UI.ReplaceWidget(Id("rp"), PushButton("This is a PushButton")) | |
UI.UserInput | |
UI.ReplaceWidget(Id("rp"), CheckBox("This is a CheckBox")) | |
UI.UserInput | |
UI.ReplaceWidget( | |
Id("rp"), | |
HBox(PushButton("Button1"), PushButton("Button2")) | |
) | |
UI.UserInput | |
UI.CloseDialog | |
nil | |
end | |
end | |
end | |
Yast::ReplacePoint1Client.new.main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment