Mailinglist Archive: yast-devel (87 mails)

< Previous Next >
[yast-devel] Wizard buttons mess
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Wed, 8 Feb 2017 10:24:37 +0100
  • Message-id: <20170208102437.11d3b51c@linux-vvcf.privatesite>
Hi developers,
I was again hit by issue with enabling disabling buttons in wizard and
also its renaming and having six parameters to all wizard dialogs are
wrong from API POV.

So what I proposing?

Create configuration class that have names and enablement for all
buttons in wizard, reasonable defaults for it and can be passed as
argument or apply to wizard it itself.

so instead of
def InstDialog(enable_next: true, enable_back: true, enable_abort:
true, next_label: Label.Next, back_label: Label.Back, abort_label:

will API look like
def InstDialog(buttons:

What do you think?

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >