Changeset 100

Show
Ignore:
Timestamp:
12/21/07 18:51:06
Author:
slee
Message:

changes to make 1st release

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • action_groups/trunk/README

    r96 r100  
    1 run 
    2 === 
    3 python InAppSelection.py gedit 
     1Jambu In Application  
     2==================== 
     3 
     4Operate an application from switches by stepping through the UI. 
     5 
     6This version works with GTK accessibile apps and has been tested with gedit. 
     7 
     8Dependencies 
     9------------ 
     10GNOME Linux desktop 
     11python: http://python.org 
     12pygtk: http://www.pygtk.org/ 
     13pyatspi: http://live.gnome.org/GAP/PythonATSPI 
     14pygame: http://www.pygame.org/ 
     15 
     16All latest versions (some may be available in distro's package repositries) 
     17 
     18Installing 
     19---------- 
     201) Unzip the tarbal (e.g tar xvf jambuinapp-0.0.1.tar.gz) 
     212) cd (e.g. cd jambuinapp-0.0.1) 
     223) python setup.py install (note run as root or sudo) 
     23 
     24Useage 
     25------ 
     26/usr/local/bin/jambuinapp gedit 
    427 
    528Make sure gedit is already open and make it the active application again to be safe. 
     
    1235action item -> space key, USB switch 1 or 6, right mouse button 
    1336 
    14 For mouse you need to leave the pointer in the spaces between the buttons and menus do not display properly
     37For mouse you need to leave the pointer in the spaces between the buttons and menus do not display properly as the mouse interferes
    1538 
    1639Known 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  
    183183      except LookupError: 
    184184        root = None 
    185       # for some reason they are not always the same accessible 
     185      # for some reason they are not always the same accessible  
    186186      # even though we expect them to be compared by hash 
     187      # perhaps state changes as default hash is probably on memory image 
    187188      if top is not None and \ 
    188189         (root is None or not(top.getRole() == root.getRole() and top.name == root.name)): 
     
    228229 
    229230  def _onPrint(self, data): 
    230     #print data 
    231     pass 
     231    print data 
    232232 
    233233  def _onWindowActivate(self, top): 
     
    302302      if acc.hasRoleIn(pyatspi.ROLE_MENU_ITEM): 
    303303        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() 
    309305        elif self.row_expanded(path): 
    310           print '!!!Esc
     306          print '!!! Escape
    311307          sendKeyCombination('Escape', '')          
    312308      elif acc.hasRoleIn(pyatspi.ROLE_MENU): 
     
    319315        self._do_actionGroup(iter) # race condition? 
    320316      else: 
    321         print 'toggle' 
    322317        acc.toggleSectable() 
    323                       
     318 
     319    elif acc.hasToolkitIn('Gecko') and \ 
     320         acc.hasRoleIn(pyatspi.ROLE_MENU, pyatspi.ROLE_MENU_ITEM): 
     321        acc.generateClick() 
     322                
    324323    # TODO: use template DP for toolkit and application 
    325324    elif acc.isActionable(): 
     
    333332        self.setModel(acc) 
    334333        selection = self.get_selection() 
    335         print 'zzz' + str(path) 
    336334        self.get_model().popToPath(path) 
    337335        self.goToPath(path) 
  • action_groups/trunk/src/jambu/__init__.py

    r98 r100  
    22Configures the path to pyatspi. Exposes all other package contents. 
    33 
     4@author: Steve Lee 
    45@author: Eitan Isaacson 
    56@author: Peter Parente 
     
    1314''' 
    1415import sys, os 
    15 from i18n import _ 
     16#from i18n import _ 
    1617import signal 
    1718def signal_handler(signal, frame): 
     
    2324 
    2425# If pyatspi not installed seperately, add pyatspi zip file to the path 
    25 try: 
    26   import pyatspi 
    27 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')) 
    2930 
    3031def main(): 
     
    3233  Run program. 
    3334  ''' 
    34   from jambuinapp import Main 
    35   main = Main() 
    36   main.run() 
     35  from jambu.InAppSelection import App 
     36  app = App() 
     37  app.main()