strongwind r18 - in trunk: . strongwind
- From: jtai svn gnome org
- To: svn-commits-list gnome org
- Subject: strongwind r18 - in trunk: . strongwind
- Date: Fri, 11 Jul 2008 06:47:44 +0000 (UTC)
Author: jtai
Date: Fri Jul 11 06:47:44 2008
New Revision: 18
URL: http://svn.gnome.org/viewvc/strongwind?rev=18&view=rev
Log:
2008-07-10 Jonathan Tai <jon tgpsolutions com>
* strongwind/accessibles.py: Have PushButton override __getattr__() to
provide an imageSize attributes so we can query the size of images
within buttons. (#542483, CÃsar Octavio LÃpez NatarÃn)
Modified:
trunk/ChangeLog
trunk/strongwind/accessibles.py
Modified: trunk/strongwind/accessibles.py
==============================================================================
--- trunk/strongwind/accessibles.py (original)
+++ trunk/strongwind/accessibles.py Fri Jul 11 06:47:44 2008
@@ -1010,7 +1010,10 @@
super(Button, self).click()
class PushButton(Button):
- pass
+ def __getattr__(self, attr):
+ if attr == 'imageSize':
+ return self._accessible.queryImage().getImageSize()
+ else: return super(PushButton, self).__getattr__(attr)
class RadioButton(Button):
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]