def __init__(self, **kwargs):
     super(OBD2ChannelsView, self).__init__(**kwargs)
     self.register_event_type('on_config_updated')
     self.obd2Grid = kvFind(self, 'rcid', 'obd2grid')
     obd2Enable = kvFind(self, 'rcid', 'obd2enable')
     obd2Enable.bind(on_setting=self.on_obd2_enabled)
     obd2Enable.setControl(SettingsSwitch())
     
     self.obd2Settings = OBD2Settings()
     
     self.update_view_enabled()
Ejemplo n.º 2
0
    def __init__(self, **kwargs):
        super(OBD2ChannelsView, self).__init__(**kwargs)
        self.register_event_type('on_config_updated')
        self.obd2_grid = self.ids.obd2grid
        obd2_enable = self.ids.obd2enable
        obd2_enable.bind(on_setting=self.on_obd2_enabled)
        obd2_enable.setControl(SettingsSwitch())
        self.base_dir = kwargs.get('base_dir')

        self.obd2_settings = OBD2Settings(base_dir=self.base_dir)

        self.update_view_enabled()