def on_platform_config(self, value): self.layout.update() self.platform_settings_button.enable( len(PlatformSettingsDialog.option_list_for_platform(value)) > 0)
def on_platform_settings_button(self): platform = LauncherConfig.get("platform") if platform: PlatformSettingsDialog.open(self.window, platform)
def __init__(self, parent, platform): super().__init__(parent, "16x16/settings.png") self.platform = platform self.set_enabled( len(PlatformSettingsDialog.option_list_for_platform(platform)) > 0 )
def on_activate(self): PlatformSettingsDialog.open(self.window, self.platform)
def on_platform_settings_button(self): platform = get_config(self).get("platform") if platform: PlatformSettingsDialog.open(self.window, platform)
def on_platform_config(self, value): self.layout.update() self.platform_settings_button.enable( len(PlatformSettingsDialog.option_list_for_platform(value)) > 0 )
def __init__(self, parent, platform): super().__init__(parent, "16x16/settings.png") self.platform = platform self.enable( len(PlatformSettingsDialog.option_list_for_platform(platform)) > 0 )