Re: dogtail-devel Patch for Dogtail r339
- From: Zack Cerza <zcerza redhat com>
- To: Pelya <pelya uol ua>
- Cc: dogtail-devel-list gnome org
- Subject: Re: dogtail-devel Patch for Dogtail r339
- Date: Mon, 10 Dec 2007 16:36:55 -0500
Pelya wrote:
Support for AccessibleValue object (progress bars, maybe some sliders).
Small typo fix.
Hi Pelya,
Sorry for taking so long to respond. I needed to finish porting dogtail
over to pyatspi.
I ported your patch, but haven't tested it yet - need to find a progress
bar to test it against :)
Does it look ok?
Thanks,
Zack
Index: dogtail/tree.py
===================================================================
--- dogtail/tree.py (revision 347)
+++ dogtail/tree.py (working copy)
@@ -493,7 +493,29 @@
selectedChildren = property(_getSelectedChildren, doc = \
"Returns a list of children that are selected.")
+ ##
+ # Value
+ ##
+ def _getValue(self):
+ try: return self.queryValue().getCurrentValue()
+ except NotImplementedError: pass
+
+ def _setValue(self, value):
+ self.setCurrentValue(value)
+
+ value = property(_getValue, setValue)
+
+ def _getValueMin(self):
+ try: return self.queryValue().getMinimumValue()
+ except NotImplementedError: pass
+ valueMin = property(_getValueMin)
+
+ def _getValueMax(self):
+ try: return self.queryValue().getMaximumValue()
+ except NotImplementedError: pass
+ valueMax = property(_getValueMax)
+
def typeText(self, string):
"""
Type the given text into the node, with appropriate delays and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]