diff options
author | Erik Troan <ewt@redhat.com> | 2000-01-24 15:57:59 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-01-24 15:57:59 +0000 |
commit | ed2374771aeeb432b232904f6ef9c2def3bb9d86 (patch) | |
tree | 445eb4fcb6b9cb04676c418a2afea563d5976721 /textw | |
parent | ecb68d699756d72eb6f0f260f69632156cc0b319 (diff) | |
download | anaconda-ed2374771aeeb432b232904f6ef9c2def3bb9d86.tar.gz anaconda-ed2374771aeeb432b232904f6ef9c2def3bb9d86.tar.xz anaconda-ed2374771aeeb432b232904f6ef9c2def3bb9d86.zip |
added F1 help
Diffstat (limited to 'textw')
-rw-r--r-- | textw/packages.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/textw/packages.py b/textw/packages.py index 4df91efe8..415966631 100644 --- a/textw/packages.py +++ b/textw/packages.py @@ -87,8 +87,16 @@ class IndividualPackageWindow: g = GridForm (screen, _("Package Group Selection"), 1, 2) g.add (ct, 0, 0, (0, 0, 0, 1)) g.add (bb, 0, 1, growx = 1) - - result = g.runOnce () + g.addHotKey("F1") + + result = g.run() + while result == "F1": + h = ct.getCurrent() + if type(h) != type(""): + ButtonChoiceWindow(screen, h['name'], h['description'], + buttons = [ _('Ok') ], x = 5, y = 5) + result = g.run() + screen.popWindow() # turn off all the packages for key in todo.hdList.packages.keys (): |