strongwind r29 - in trunk: . strongwind
- From: mgorse svn gnome org
- To: svn-commits-list gnome org
- Subject: strongwind r29 - in trunk: . strongwind
- Date: Tue, 24 Feb 2009 22:51:06 +0000 (UTC)
Author: mgorse
Date: Tue Feb 24 22:51:05 2009
New Revision: 29
URL: http://svn.gnome.org/viewvc/strongwind?rev=29&view=rev
Log:
* strongwind/accessibles.py: Make 'imageSize' attrib available
for any sub-class of Button. Make ToggleButton inherit from Button.
(#572995)
Modified:
trunk/ChangeLog
trunk/strongwind/accessibles.py
Modified: trunk/strongwind/accessibles.py
==============================================================================
--- trunk/strongwind/accessibles.py (original)
+++ trunk/strongwind/accessibles.py Tue Feb 24 22:51:05 2009
@@ -1087,15 +1087,20 @@
self.__getattr__('click')()
-class PushButton(Button):
def __getattr__(self, attr):
if attr == 'imageSize':
return self._accessible.queryImage().getImageSize()
- else: return super(PushButton, self).__getattr__(attr)
+ else: return super(Button, self).__getattr__(attr)
+
+class PushButton(Button):
+ pass
class RadioButton(Button):
pass
+class ToggleButton(Button):
+ pass
+
class CheckBox(Button):
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]