summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-11-07 18:56:34 +0000
committerJeremy Katz <katzj@redhat.com>2004-11-07 18:56:34 +0000
commit87b73cda69c2b29c548492e6c60a8a5fba728146 (patch)
tree19bf5c3dc72d54c9651529f69ae46a6de4f0eec8 /gui.py
parent62e527787305efe9687bad93fb6a00810d7ac6af (diff)
downloadanaconda-87b73cda69c2b29c548492e6c60a8a5fba728146.tar.gz
anaconda-87b73cda69c2b29c548492e6c60a8a5fba728146.tar.xz
anaconda-87b73cda69c2b29c548492e6c60a8a5fba728146.zip
2004-11-07 Jeremy Katz <katzj@redhat.com>
* gui.py (MnemonicLabel.__init__): Allow setting of label alignment on creation.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index 36e7123ec..6223073c9 100755
--- a/gui.py
+++ b/gui.py
@@ -300,9 +300,11 @@ def getBusyCursorStatus():
return _busyCursor
class MnemonicLabel(gtk.Label):
- def __init__(self, text=""):
+ def __init__(self, text="", alignment = None):
gtk.Label.__init__(self, "")
self.set_text_with_mnemonic(text)
+ if alignment is not None:
+ apply(self.set_alignment, alignment)
class WrappingLabel(gtk.Label):
def __init__(self, label=""):