Supporting attribute-like properties
- From: Kerrick Staley <mail kerrickstaley com>
- To: python-hackers-list gnome org
- Subject: Supporting attribute-like properties
- Date: Sat, 26 May 2012 00:43:06 -0500
Hello,
Are there any plans to allow GObject properties to be accessed just like ordinary attributes (using __getattr__ and __setattr__)? This would allow something like
myLabel.angle += 180
instead of
myLabel.set_angle(myLabel.get_angle() + 180)
- Kerrick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]