def toggle_plugin(row: int): TV.map( Q.select(preference.widget, Q.props("name", "plugin.list")), TV.column(Q.props("title", "Active")), TV.cell_renderer(0), Q.emit("toggled", row), )
def test_open_plugin_settings(preference, plugin_engine): plugin_engine.collect() preference.run() TV.map( Q.select(preference.widget, Q.props("name", "plugin.list")), TV.column(Q.props("title", "Active")), TV.cell_renderer(0), Q.emit("toggled", 0), ) settings_button = Q.select(preference.widget, Q.props("name", "plugin.settings")) assert settings_button.props.sensitive is True settings_button.emit("clicked") plugin_a = plugin_engine.lookup("PluginA") assert plugin_a.plugin_object.parent == preference.widget