def _get_provider_map(self): """Iterates through all registered input provider names and finds the respective MotionEvent subclass for each. Returns a dict of MotionEvent subclasses mapped to their provider name. """ provider_map = {} for input_provider in MotionEventFactory.list(): if not hasattr(providers, input_provider): continue p = getattr(providers, input_provider) for m in p.__all__: event = getattr(p, m) if issubclass(event, MotionEvent): provider_map[event] = input_provider return provider_map
def _get_provider_map(self): """Iterates through all registered input provider names and finds the respective MotionEvent subclass for each. Returns a dict of MotionEvent subclasses mapped to their provider name. """ provider_map = {} for input_provider in MotionEventFactory.list(): if not hasattr(providers, input_provider): continue p = getattr(providers, input_provider) for m in p.__all__: event = getattr(p, m) if issubclass(event, MotionEvent): provider_map[event] = input_provider return provider_map
'PIL', 'opencv', 'opencv.cv', 'opencv.highgui', 'cython'): testimport(x) report_dict['Libraries'] = report report = [] title('Configuration') s = StringIO() from kivy.config import Config ConfigParser.write(Config, s) report.extend(s.getvalue().split('\n')) report_dict['Configuration'] = report report = [] title('Input availability') from kivy.input.factory import MotionEventFactory for x in MotionEventFactory.list(): report.append(x) report_dict['InputAvailablity'] = report report = [] ''' title('Log') for x in pymt_logger_history.history: report.append(x.message) ''' title('Environ') for k, v in os.environ.items(): report.append('%s = %s' % (k, v)) report_dict['Environ'] = report report = []
report_dict["Libraries"] = report report = [] title("Configuration") s = StringIO() from kivy.config import Config ConfigParser.write(Config, s) report.extend(s.getvalue().split("\n")) report_dict["Configuration"] = report report = [] title("Input availability") from kivy.input.factory import MotionEventFactory for x in MotionEventFactory.list(): report.append(x) report_dict["InputAvailablity"] = report report = [] """ title('Log') for x in pymt_logger_history.history: report.append(x.message) """ title("Environ") for k, v in os.environ.items(): report.append("%s = %s" % (k, v)) report_dict["Environ"] = report report = []