diff options
author | Jeremy Katz <katzj@redhat.com> | 2004-11-07 18:56:34 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2004-11-07 18:56:34 +0000 |
commit | 87b73cda69c2b29c548492e6c60a8a5fba728146 (patch) | |
tree | 19bf5c3dc72d54c9651529f69ae46a6de4f0eec8 /gui.py | |
parent | 62e527787305efe9687bad93fb6a00810d7ac6af (diff) | |
download | anaconda-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-x | gui.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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=""): |