[pygobject] Fix Gtk.Label(label="Foo")
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Fix Gtk.Label(label="Foo")
- Date: Wed, 8 Dec 2010 16:36:22 +0000 (UTC)
commit d2cfd6e9250d40de7c715ac74e299deddf137683
Author: Paolo Borelli <pborelli gnome org>
Date: Wed Dec 8 17:34:54 2010 +0100
Fix Gtk.Label(label="Foo")
Use 'label' as an argument name instead of 'str', otherwise we may
end up up with two 'label' in the kwds dict. Besides 'str' is a
reserved keyword.
gi/overrides/Gtk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index c3b5884..784634d 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1059,8 +1059,8 @@ LinkButton = override(LinkButton)
__all__.append('LinkButton')
class Label(Gtk.Label):
- def __init__(self, str=None, **kwds):
- Gtk.Label.__init__(self, label=str, **kwds)
+ def __init__(self, label=None, **kwds):
+ Gtk.Label.__init__(self, label=label, **kwds)
Label = override(Label)
__all__.append('Label')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]