Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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
You can’t perform that action at this time.