コード例 #1
0
 def on_platform_config(self, value):
     self.layout.update()
     self.platform_settings_button.enable(
         len(PlatformSettingsDialog.option_list_for_platform(value)) > 0)
コード例 #2
0
 def on_platform_settings_button(self):
     platform = LauncherConfig.get("platform")
     if platform:
         PlatformSettingsDialog.open(self.window, platform)
コード例 #3
0
 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
     )
コード例 #4
0
 def on_activate(self):
     PlatformSettingsDialog.open(self.window, self.platform)
コード例 #5
0
 def on_platform_settings_button(self):
     platform = get_config(self).get("platform")
     if platform:
         PlatformSettingsDialog.open(self.window, platform)
コード例 #6
0
 def on_platform_settings_button(self):
     platform = LauncherConfig.get("platform")
     if platform:
         PlatformSettingsDialog.open(self.window, platform)
コード例 #7
0
 def on_platform_config(self, value):
     self.layout.update()
     self.platform_settings_button.enable(
         len(PlatformSettingsDialog.option_list_for_platform(value)) > 0
     )
コード例 #8
0
 def on_activate(self):
     PlatformSettingsDialog.open(self.window, self.platform)
コード例 #9
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
     )