Skip to content

Commit

Permalink
Use existing image and removed cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Oct 15, 2020
1 parent 2634113 commit 45c93e5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions examples/Image1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,13 @@ def main
VBox(
Image(
Id("image"),
"/usr/share/YaST2/theme/current/wallpapers/welcome.jpg",
"/usr/share/grub2/themes/openSUSE/logo.png",
"fallback text"
),
PushButton(Opt(:default), "&OK")
)
)
UI.UserInput
if UI.WidgetExists(Id("image"))
UI.ChangeWidget(Id("image"), :Enabled, false)
UI.UserInput
UI.ChangeWidget(Id("image"), :Enabled, true)
UI.UserInput
else
Builtins.y2error("No such widget id")
end
UI.CloseDialog

nil
Expand Down

0 comments on commit 45c93e5

Please sign in to comment.