Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created January 23, 2017 08:37
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/489fea3d23e223e3f6c256a58f715424 to your computer and use it in GitHub Desktop.
Save mvidner/489fea3d23e223e3f6c256a58f715424 to your computer and use it in GitHub Desktop.
# 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