Example #1
0
 def shared_cb(*args, **kwargs):
     logging.info('shared: %s, %s', args, kwargs)
     try:
         mesh.activity_shared(self)
     except Exception, err:
         logging.error('Failure signaling activity sharing'
                       'to mesh module: %s', util.get_traceback(err))
 def shared_cb(*args, **kwargs):
     logging.info('shared: %s, %s', args, kwargs)
     try:
         mesh.activity_shared(self)
     except Exception, err:
         logging.error('Failure signaling activity sharing'
                       'to mesh module: %s', util.get_traceback(err))
 def shared_cb(self, *args, **kwargs):
     log.info('Shared CB: %s, %s', args, kwargs)
     try:
         mesh.activity_shared(self)
     except Exception, err:
         log.error(
             """Failure signaling activity sharing to mesh module: %s""",
             util.get_traceback(err))
 def shared_cb(*args, **kwargs):
     log.info( 'shared: %s, %s', args, kwargs )
     try:
         mesh.activity_shared(self)
     except Exception as err:
         log.error( """Failure signaling activity sharing to mesh module: %s""", util.get_traceback(err) )
     else:
         log.info( 'mesh activity shared message sent, trying to grab focus' )
     try:
         self._pgc.grab_focus()
     except Exception as err:
         log.warn( 'Focus failed: %s', err )
     else:
         log.info( 'asserting focus' )
         assert self._pgc.is_focus(), """Did not successfully set pygame canvas focus"""
     log.info( 'callback finished' )