def getRadioPluginsAddPluginFrame(directoryPath, importantFileNames, names, repository):
 repository.pluginFrame = PluginFrame()
 radioPlugins = []
 for name in names:
  radioPlugin = RadioPlugin().getFromRadio((name in importantFileNames), repository.pluginFrame.latentStringVar, name, repository, (name == importantFileNames[0]))
  radioPlugin.updateFunction = repository.pluginFrame.update
  radioPlugins.append(radioPlugin)
 defaultRadioButton = getSelectedRadioPlugin((importantFileNames + [radioPlugins[0].name]), radioPlugins)
 repository.pluginFrame.getFromPath(defaultRadioButton, directoryPath, repository)
 return radioPlugins

def getRadioPluginsAddPluginFrame ( directoryPath , importantFileNames , names , repository ) : repository . pluginFrame = PluginFrame ( ) radioPlugins = [ ] for name in names : radioPlugin = RadioPlugin ( ) . getFromRadio ( ( name in importantFileNames ) , repository . pluginFrame . latentStringVar , name , repository , ( name == importantFileNames [ 0 ] ) ) radioPlugin . updateFunction = repository . pluginFrame . update radioPlugins . append ( radioPlugin ) defaultRadioButton = getSelectedRadioPlugin ( ( importantFileNames + [ radioPlugins [ 0 ] . name ] ) , radioPlugins ) repository . pluginFrame . getFromPath ( defaultRadioButton , directoryPath , repository ) return radioPlugins
get the radio plugins and add the plugin frame .