def clickRadio( self ): "Workaround for Tkinter bug, invoke and set the value when clicked." if not self.activate: return self.menuButtonDisplay.radioVar.set( self.valueName ) pluginModule = getCraftTypePluginModule() profilePluginSettings = settings.getReadRepository( pluginModule.getNewRepository() ) profilePluginSettings.profileListbox.value = self.name settings.writeSettings( profilePluginSettings ) settings.updateProfileSaveListeners()
def clickRadio( self ): "Workaround for Tkinter bug, invoke and set the value when clicked." if not self.activate: return self.menuButtonDisplay.radioVar.set( self.valueName ) profileSettings = getReadProfileRepository() plugins = profileSettings.craftRadios for plugin in plugins: plugin.value = ( plugin.name == self.name ) settings.writeSettings( profileSettings ) settings.updateProfileSaveListeners()
def clickRadio( self ): "Workaround for Tkinter bug, invoke and set the value when clicked." if not self.activate: return self.radioVar.set( self.profileJoinName ) pluginModule = getCraftTypePluginModule( self.profilePluginFileName ) profilePluginSettings = settings.getReadRepository( pluginModule.getNewRepository() ) profilePluginSettings.profileListbox.value = self.name settings.writeSettings( profilePluginSettings ) profileSettings = getReadProfileRepository() plugins = profileSettings.craftRadios for plugin in plugins: plugin.value = ( plugin.name == self.profilePluginFileName ) settings.writeSettings( profileSettings ) settings.updateProfileSaveListeners()
def updateRelay( self ): "Update the plugin frame then the ProfileSaveListeners." self.pluginFrame.update() settings.updateProfileSaveListeners()