Skip to content

Commit

Permalink
ShortcurConflict5 Fix "Invalid arguments for the Wizard widget"
Browse files Browse the repository at this point in the history
UI.OpenDialog(
  Opt("defaultsize"),
  Wizard("back", "&Back", "abort", "&Abort", "next", "&Next")

errors out with "Invalid arguments for the Wizard widget"

we should be using Symbol("back") etc. as is used in Wizard1.py

ShortcutConflics5.rb just uses ':back' (which is equiv to
Symbol("back"))

Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent c021144 commit beec86b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ShortcutConflict5.py
Expand Up @@ -14,7 +14,7 @@ class ShortcutConflict5Client:
def main(self):
UI.OpenDialog(
Opt("defaultsize"),
Wizard("back", "&Back", "abort", "&Abort", "next", "&Next")
Wizard(Symbol("back"), "&Back", Symbol("abort"), "&Abort", Symbol("next"), "&Next")
)

fields = HBox(
Expand Down

0 comments on commit beec86b

Please sign in to comment.