Changeset 100
- Timestamp:
- 12/21/07 18:51:06
- Files:
-
- action_groups/trunk/AUTHORS (added)
- action_groups/trunk/ChangeLog (added)
- action_groups/trunk/LICENSE (added)
- action_groups/trunk/MANIFEST.in (added)
- action_groups/trunk/NEWS (added)
- action_groups/trunk/README (modified) (2 diffs)
- action_groups/trunk/setup.py (added)
- action_groups/trunk/src (modified) (1 prop)
- action_groups/trunk/src/jambu (modified) (1 prop)
- action_groups/trunk/src/jambu/ActionTree.py (modified) (5 diffs)
- action_groups/trunk/src/jambu/__init__.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
action_groups/trunk/README
r96 r100 1 run 2 === 3 python InAppSelection.py gedit 1 Jambu In Application 2 ==================== 3 4 Operate an application from switches by stepping through the UI. 5 6 This version works with GTK accessibile apps and has been tested with gedit. 7 8 Dependencies 9 ------------ 10 GNOME Linux desktop 11 python: http://python.org 12 pygtk: http://www.pygtk.org/ 13 pyatspi: http://live.gnome.org/GAP/PythonATSPI 14 pygame: http://www.pygame.org/ 15 16 All latest versions (some may be available in distro's package repositries) 17 18 Installing 19 ---------- 20 1) Unzip the tarbal (e.g tar xvf jambuinapp-0.0.1.tar.gz) 21 2) cd (e.g. cd jambuinapp-0.0.1) 22 3) python setup.py install (note run as root or sudo) 23 24 Useage 25 ------ 26 /usr/local/bin/jambuinapp gedit 4 27 5 28 Make sure gedit is already open and make it the active application again to be safe. … … 12 35 action item -> space key, USB switch 1 or 6, right mouse button 13 36 14 For mouse you need to leave the pointer in the spaces between the buttons and menus do not display properly .37 For mouse you need to leave the pointer in the spaces between the buttons and menus do not display properly as the mouse interferes. 15 38 16 39 Known Bugs action_groups/trunk/src
- Property svn:ignore set to *.pyc *.pyo
action_groups/trunk/src/jambu
- Property svn:ignore set to *.pyc *.pyo
action_groups/trunk/src/jambu/ActionTree.py
r98 r100 183 183 except LookupError: 184 184 root = None 185 # for some reason they are not always the same accessible 185 # for some reason they are not always the same accessible 186 186 # even though we expect them to be compared by hash 187 # perhaps state changes as default hash is probably on memory image 187 188 if top is not None and \ 188 189 (root is None or not(top.getRole() == root.getRole() and top.name == root.name)): … … 228 229 229 230 def _onPrint(self, data): 230 #print data 231 pass 231 print data 232 232 233 233 def _onWindowActivate(self, top): … … 302 302 if acc.hasRoleIn(pyatspi.ROLE_MENU_ITEM): 303 303 if not self.row_expanded(path): 304 if acc.hasToolkitIn('Gecko'): 305 #sendKeyCombination('space', '') 306 acc.generateClick() 307 else: 308 acc.doAction() 304 acc.doAction() 309 305 elif self.row_expanded(path): 310 print '!!! Esc'306 print '!!! Escape' 311 307 sendKeyCombination('Escape', '') 312 308 elif acc.hasRoleIn(pyatspi.ROLE_MENU): … … 319 315 self._do_actionGroup(iter) # race condition? 320 316 else: 321 print 'toggle'322 317 acc.toggleSectable() 323 318 319 elif acc.hasToolkitIn('Gecko') and \ 320 acc.hasRoleIn(pyatspi.ROLE_MENU, pyatspi.ROLE_MENU_ITEM): 321 acc.generateClick() 322 324 323 # TODO: use template DP for toolkit and application 325 324 elif acc.isActionable(): … … 333 332 self.setModel(acc) 334 333 selection = self.get_selection() 335 print 'zzz' + str(path)336 334 self.get_model().popToPath(path) 337 335 self.goToPath(path) action_groups/trunk/src/jambu/__init__.py
r98 r100 2 2 Configures the path to pyatspi. Exposes all other package contents. 3 3 4 @author: Steve Lee 4 5 @author: Eitan Isaacson 5 6 @author: Peter Parente … … 13 14 ''' 14 15 import sys, os 15 from i18n import _16 #from i18n import _ 16 17 import signal 17 18 def signal_handler(signal, frame): … … 23 24 24 25 # If pyatspi not installed seperately, add pyatspi zip file to the path 25 try:26 import pyatspi27 except ImportError:28 sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'pyatspi.zip'))26 #try: 27 # import pyatspi 28 #except ImportError: 29 # sys.path.insert(1, os.path.join(os.path.dirname(__file__), 'pyatspi.zip')) 29 30 30 31 def main(): … … 32 33 Run program. 33 34 ''' 34 from jambu inapp import Main35 main = Main()36 main.run()35 from jambu.InAppSelection import App 36 app = App() 37 app.main()
