~nishimotz/nvdajp/releases_2011.1

« back to all changes in this revision

Viewing changes to source/core.py

  • Committer: Takuya Nishimoto
  • Date: 2011-07-10 13:50:40 UTC
  • mfrom: (4072.1.59 releases_2011.1)
  • Revision ID: nishimotz@gmail.com-20110710135040-0zr5m6nwv0nm59up
merged mshinke revno 4131 (x64 application keyecho for IME)

Show diffs side-by-side

added added

removed removed

Lines of Context:
147
147
                except:                                                                                                                 # Masataka.Shinke
148
148
                        log.error("Error terminating nvdajp_keyEvents",exc_info=True)   # Masataka.Shinke    
149
149
 
 
150
def _set_nvdajp_keyEvents64():
 
151
        if not globalVars.appArgs.minimal:                                                                      # Masataka.Shinke
 
152
                import nvdajp_keyEvents64                                                                                       # Masataka.Shinke
 
153
                try:                                                                                                                    # Masataka.Shinke
 
154
                        nvdajp_keyEvents64.initialize()                                                         # Masataka.Shinke
 
155
                except:                                                                                                                 # Masataka.Shinke
 
156
                        log.exception("Error retrieving initial nvdajpimeRPC64")        # Masataka.Shinke
 
157
 
 
158
def _unload_nvdajp_keyEvents64():
 
159
        if not globalVars.appArgs.minimal:                                                                              # Masataka.Shinke
 
160
                try:                                                                                                                            # Masataka.Shinke
 
161
                        #import nvdajpimeRPCnvdajp_keyEvents64; 
 
162
                        nvdajp_keyEvents64.terminate()                  # Masataka.Shinke
 
163
                except:                                                                                                                 # Masataka.Shinke
 
164
                        log.error("Error terminating nvdajp_keyEvents64",exc_info=True) # Masataka.Shinke    
 
165
                        
 
166
                        
 
167
                        
150
168
def main():
151
169
        """NVDA's core main loop.
152
170
This initializes all modules such as audio, IAccessible, keyboard, mouse, and GUI. Then it initialises the wx application object and installs the core pump timer, which checks the queues and executes functions every 1 ms. Finally, it starts the wx main loop.
289
307
        #               log.exception("Error retrieving initial nvdajp_keyEvents")      # Masataka.Shinke
290
308
        # nvdajp end
291
309
        queueHandler.queueFunction(queueHandler.eventQueue, _set_nvdajp_keyEvents) # nvdajp
 
310
        queueHandler.queueFunction(queueHandler.eventQueue, _set_nvdajp_keyEvents64) # nvdajp
 
311
        
292
312
        import watchdog
293
313
        import baseObject
294
314
        class CorePump(wx.Timer):
327
347
        #               import nvdajp_keyEvents; nvdajp_keyEvents.terminate()                   # Masataka.Shinke
328
348
        #       except:                                                                                                                 # Masataka.Shinke
329
349
        #               log.error("Error terminating nvdajp_keyEvents",exc_info=True)   # Masataka.Shinke    
 
350
        _unload_nvdajp_keyEvents64() #nvdajp
330
351
        _unload_nvdajp_keyEvents() # nvdajp
331
352
        try:
332
353
                if globalVars.focusObject and hasattr(globalVars.focusObject,"event_loseFocus"):