> pyanaconda/ui/gui/spokes/custom.glade | 559
++++++----------------------------
> pyanaconda/ui/gui/spokes/custom.py | 208 +++----------
> 2 files changed, 146 insertions(+), 621 deletions(-)
>
> +
> + # Set a default RAID level in the combo.
> + i = 0
> + for row in raid_combo.get_model():
> + if row[0].startswith(raid_level.upper()):
> + raid_combo.set_active(i)
> + break
> +
> + i += 1
You can use 'for (i, row) in enumerate(raid_combo.get_model())' here.
Oh, that's a good tip. I'll work it in. There's probably other places
this can be done too.
- Chris