[orca-devel] traceback while experimenting with function selectedText
- From: jose vilmar estacio de souza <vilmar informal com br>
- To: orca devel <orca-devel-list gnome org>
- Subject: [orca-devel] traceback while experimenting with function selectedText
- Date: Sat, 17 Jul 2010 20:56:50 -0300
Hi all.
I was doing some experiments and found the following:
Traceback (most recent call last):
File
"/data/software/orca/dev/lib/python2.6/site-packages/orca/focus_tracking_presenter.py",
line 715, in _processObjectEvent
s.processObjectEvent(event)
File
"/data/software/orca/dev/lib/python2.6/site-packages/orca/script.py",
line 407, in processObjectEvent
self.listeners[key](event)
File
"/data/software/orca/dev/lib/python2.6/site-packages/orca/default.py",
line 3057, in onCaretMoved
self._presentTextAtNewCaretPosition(event)
File
"/data/software/orca/dev/lib/python2.6/site-packages/orca/scripts/apps/Eclipse/script.py",
line 73, in _presentTextAtNewCaretPosition
[text, startOffset, endOffset] = self.utilities.selectedText(obj)
File
"/data/software/orca/dev/lib/python2.6/site-packages/orca/script_utilities.py",
line 1933, in selectedText
return [textContents, startOffset, endOffset]
UnboundLocalError: local variable 'startOffset' referenced before assignment
The problems happens when does not exist text selected and the function
is called.
Seems that we need to initialize the variables startOffset and endOffset
in the function selectedText before the loop.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]