Skip to content

Commit

Permalink
Wizard should use 'Symbol' instead of 'Id'
Browse files Browse the repository at this point in the history
To match Ruby examples e.g.

Wizard(:back, "&back",.....) etc.

we should use

Wizard(Symbol("back", "&back",.....) etc. as the argument doesn't
get automatically translated

Signed-off-by: Noel Power <noel.power@suse.com>
  • Loading branch information
noelpower committed Feb 8, 2023
1 parent 253b84f commit 24d1ece
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 17 deletions.
6 changes: 3 additions & 3 deletions examples/DefaultButtons1.py
Expand Up @@ -47,11 +47,11 @@ def main(self):
Opt("defaultsize"),
Wizard(
Opt("stepsEnabled"),
Id("back"),
Symbol("back"),
"&Back",
Id("abort"),
Symbol("abort"),
"Ab&ort",
Id("next"),
Symbol("next"),
"&Next"
)
)
Expand Down
6 changes: 3 additions & 3 deletions examples/DefaultButtons2.py
Expand Up @@ -46,11 +46,11 @@ def main(self):
Opt("defaultsize"),
Wizard(
Opt("stepsEnabled"),
Id("back"),
Symbol("back"),
"&Back",
Id("abort"),
Symbol("abort"),
"Ab&ort",
Id("next"),
Symbol("next"),
"&Next"
)
)
Expand Down
6 changes: 3 additions & 3 deletions examples/DefaultButtons3.py
Expand Up @@ -46,11 +46,11 @@ def main(self):
Opt("defaultsize"),
Wizard(
Opt("stepsEnabled"),
Id("back"),
Symbol("back"),
"&Back",
Id("abort"),
Symbol("abort"),
"Ab&ort",
Id("next"),
Symbol("next"),
"&Next"
)
)
Expand Down
3 changes: 1 addition & 2 deletions examples/PatternSelector-wizard-with-packages.py
Expand Up @@ -22,8 +22,7 @@ def main(self):

UI.OpenDialog(
Opt("defaultsize"),
#Wizard("back", "", "cancel", "&Cancel", "ok", "&OK")
Wizard(Opt("stepsEnabled"), Id("back"), "", Id("cancel"), "&Cancel", Id("ok"), "&OK")
Wizard(Symbol("back"), "", Symbol("cancel"), "&Cancel", Symbol("ok"), "&OK")
)


Expand Down
6 changes: 3 additions & 3 deletions examples/SlideShowDemo.py
Expand Up @@ -63,11 +63,11 @@ def main(self):
Opt("defaultsize"),
Wizard(
Opt("stepsEnabled"),
Id("back"),
Symbol("back"),
"&Back",
Id("abort"),
Symbol("abort"),
"Ab&ort",
Id("next"),
Symbol("next"),
"&Next"
)
)
Expand Down
6 changes: 3 additions & 3 deletions examples/SlideShowDemo2.py
Expand Up @@ -63,11 +63,11 @@ def main(self):
Opt("defaultsize"),
Wizard(
Opt("stepsEnabled"),
Id("back"),
Symbol("back"),
"&Back",
Id("abort"),
Symbol("abort"),
"Ab&ort",
Id("next"),
Symbol("next"),
"&Next"
)
)
Expand Down

0 comments on commit 24d1ece

Please sign in to comment.