| 164 | | obj=api.getNavigatorObject() |
| 165 | | try: |
| 166 | | (left,top,width,height)=obj.location |
| 167 | | except: |
| 168 | | speech.speakMessage(_("object has no location")) |
| 169 | | return |
| 170 | | winUser.setCursorPos(left+(width/2),top+(height/2)) |
| | 164 | obj=api.getNavigatorObject() |
| | 165 | p=globalVars.reviewPosition.copy()._getPoint() |
| | 166 | if p: |
| | 167 | winUser.setCursorPos(p.x,p.y) |
| | 168 | else: |
| | 169 | try: |
| | 170 | (left,top,width,height)=obj.location |
| | 171 | except: |
| | 172 | speech.speakMessage(_("object has no location")) |
| | 173 | return |
| | 174 | winUser.setCursorPos(left+(width/2),top+(height/2)) |