Skip to content

Commit

Permalink
Fix path to icon
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent 4b6a3f3 commit bac2f7a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions examples/Image1.py
Expand Up @@ -11,20 +11,13 @@ def main(self):
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:
ycpbuiltins.y2error("No such widget id")
UI.CloseDialog()


Expand Down

0 comments on commit bac2f7a

Please sign in to comment.