def load_jg_file(self):
     try:
         self.jg_parser_instance = jg.JoystickGremlin(self.jg_file)
         self.jg_devices = self.jg_parser_instance.get_device_names()
         self.jg_modes = self.jg_parser_instance.get_modes()
         self.jg_select_profile_button.setStyleSheet(
             'background: #007acc; color: white;')
         self.jg_profile_list.clear()
         self.jg_profile_list.addItems(self.jg_modes)
         self.export_button.setEnabled(1)
     except:
         print("Ooops problem with JG file")
     else:
         pass
Ejemplo n.º 2
0
 def load_jg_file(self):
     try:
         self.jg_parser_instance = jg.JoystickGremlin(self.jg_file)
         self.jg_devices = self.jg_parser_instance.get_device_names()
         self.jg_modes = self.jg_parser_instance.get_modes()
         self.enable_profile_load_button(self.jg_select_profile_button)
         self.jg_profile_list.clear()
         self.jg_profile_list.addItems(self.jg_modes)
         self.export_button.setEnabled(1)
     except Exception as e:
         self.disable_profile_load_button(self.jg_select_profile_button)
         self.jg_profile_list.clear()
         self.export_button.setEnabled(0)
         raise
Ejemplo n.º 3
0
 def setUp(self):
     self.file = gremlin.JoystickGremlin(
         "./tests/data/joystick_gremlin/gremlin_inherit_no_inherit.xml")
Ejemplo n.º 4
0
 def setUp(self):
     self.file = gremlin.JoystickGremlin("./tests/data/joystick_gremlin/gremlin_no_devices.xml")