from base import Enum
from factory import accessible_factory
+from dbus.types import UInt32
+
__all__ = [
"Text",
"TEXT_BOUNDARY_TYPE",
the y direction is included.
"""
func = self.get_dbus_method("getBoundedRanges", dbus_interface=ATSPI_TEXT)
- return func(x, y, width, height, coordType, xClipType, yClipType)
+ return func(x, y, width, height, UInt32(coordType), xClipType, yClipType)
def getCharacterAtOffset(self, offset):
"""
down.
"""
func = self.get_dbus_method("getCharacterExtents", dbus_interface=ATSPI_TEXT)
- return func(offset, x, y, width, height, coordType)
+ return func(offset, x, y, width, height, UInt32(coordType))
def getDefaultAttributeSet(self):
"""
-1 if the point is outside the bounds of any glyph.
"""
func = self.get_dbus_method("getOffsetAtPoint", dbus_interface=ATSPI_TEXT)
- return func(x, y, coordType)
+ return func(x, y, UInt32(coordType))
def getRangeExtents(self, startOffset, endOffset, coordType):
"""
to the corner of the containing toplevel window.
"""
func = self.get_dbus_method("getRangeExtents", dbus_interface=ATSPI_TEXT)
- return func(startOffset, endOffset, coordType)
+ return func(startOffset, endOffset, UInt32(coordType))
def getSelection(self, selectionNum):
"""