def __init__(self): 'Set the default settings, execute title & settings fileName.' skeinforge_profile.addListsToCraftTypeRepository( 'skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName( 'Profile Type: ', self) self.profileSelection = settings.MenuButtonDisplay().getFromName( 'Profile Selection: ', self) addToProfileMenu(self.profileSelection, self.profileType, self) settings.LabelDisplay().getFromName('Search:', self) reprapSearch = settings.HelpPage().getFromNameAfterHTTP( 'github.com/ahmetcemturan/SFACT', 'SFACT Update', self) skeinforgeSearch = settings.HelpPage().getFromNameAfterHTTP( 'www.reprapfordummies.net/index.php/softwaresection/44-gcode-generators/49-sfact-homepage', 'SFACT Help', self) skeinforgeSearch.column += 6 webSearch = settings.HelpPage().getFromNameAfterHTTP( 'www.reprap.org', 'Reprap', self) webSearch.column += 4 versionText = archive.getFileText(archive.getVersionFileName()) self.version = settings.LabelDisplay().getFromName( 'Version: ' + versionText, self) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge'
def addToMenu(master, menu, repository, window): "Add a tool plugin menu." analyzeFilePath = archive.getSkeinforgePluginsPath('analyze.py') pluginsDirectoryPath = skeinforge_analyze.getPluginsDirectoryPath() settings.addPluginsParentToMenu(pluginsDirectoryPath, menu, analyzeFilePath, skeinforge_analyze.getPluginFileNames())
def __init__(self): "Set the default settings, execute title & settings fileName." skeinforge_profile.addListsToCraftTypeRepository("skeinforge_application.skeinforge.html", self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), "Open File for Skeinforge", self, "" ) self.profileType = settings.MenuButtonDisplay().getFromName("Profile Type: ", self) self.profileSelection = settings.MenuButtonDisplay().getFromName("Profile Selection: ", self) addToProfileMenu(self.profileSelection, self.profileType, self) settings.LabelDisplay().getFromName("Search:", self) reprapSearch = settings.HelpPage().getFromNameAfterHTTP( "members.axion.net/~enrique/search_reprap.html", "Reprap", self ) skeinforgeSearch = settings.HelpPage().getFromNameAfterHTTP( "members.axion.net/~enrique/search_skeinforge.html", "Skeinforge", self ) skeinforgeSearch.column += 2 webSearch = settings.HelpPage().getFromNameAfterHTTP("members.axion.net/~enrique/search_web.html", "Web", self) webSearch.column += 4 versionText = archive.getFileText(archive.getVersionFileName()) self.version = settings.LabelDisplay().getFromName("Version: " + versionText, self) settings.LabelDisplay().getFromName("", self) importantFileNames = ["craft", "profile"] getRadioPluginsAddPluginGroupFrame( archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self ) self.executeTitle = "Skeinforge"
def addToProfileMenu( menu ): "Add a profile menu." settings.ToolDialog().addPluginToMenu(menu, archive.getUntilDot(archive.getSkeinforgePluginsPath('profile.py'))) menu.add_separator() directoryPath = skeinforge_profile.getPluginsDirectoryPath() pluginFileNames = skeinforge_profile.getPluginFileNames() craftTypeName = skeinforge_profile.getCraftTypeName() profileRadioVar = settings.Tkinter.StringVar() for pluginFileName in pluginFileNames: addSubmenus( craftTypeName, menu, pluginFileName, os.path.join( directoryPath, pluginFileName ), profileRadioVar )
def __init__(self): 'Set the default settings, execute title & settings fileName.' skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName('Profile Type: ', self ) self.profileSelection = settings.MenuButtonDisplay().getFromName('Profile Selection: ', self) addToProfileMenu( self.profileSelection, self.profileType, self ) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge'
def __init__(self): 'Set the default settings, execute title & settings fileName.' skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName('Profile Type: ', self ) self.profileType.columnspan = 6 self.profileSelection = settings.MenuButtonDisplay().getFromName('Profile Selection: ', self) self.profileSelection.columnspan = 6 addToProfileMenu( self.profileSelection, self.profileType, self ) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge'
def addToCraftMenu( menu ): "Add a craft plugin menu." settings.ToolDialog().addPluginToMenu(menu, archive.getUntilDot(archive.getSkeinforgePluginsPath('craft.py'))) menu.add_separator() directoryPath = skeinforge_craft.getPluginsDirectoryPath() directoryFolders = settings.getFolders(directoryPath) pluginFileNames = skeinforge_craft.getPluginFileNames() for pluginFileName in pluginFileNames: pluginFolderName = pluginFileName + '_plugins' pluginPath = os.path.join( directoryPath, pluginFileName ) if pluginFolderName in directoryFolders: addSubmenus( menu, pluginFileName, os.path.join( directoryPath, pluginFolderName ), pluginPath ) else: settings.ToolDialog().addPluginToMenu( menu, pluginPath )
def __init__(self): "Set the default settings, execute title & settings fileName." skeinforge_profile.addListsToCraftTypeRepository("skeinforge_application.skeinforge.html", self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), "Open File for Skeinforge", self, "" ) self.profileType = settings.MenuButtonDisplay().getFromName("Profile Type: ", self) self.profileType.columnspan = 6 self.profileSelection = settings.MenuButtonDisplay().getFromName("Profile Selection: ", self) self.profileSelection.columnspan = 6 addToProfileMenu(self.profileSelection, self.profileType, self) settings.LabelDisplay().getFromName("", self) importantFileNames = ["craft", "profile"] getRadioPluginsAddPluginGroupFrame( archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self ) self.executeTitle = "Skeinforge"
def addToCraftMenu(menu): "Add a craft plugin menu." settings.ToolDialog().addPluginToMenu( menu, archive.getUntilDot(archive.getSkeinforgePluginsPath('craft.py'))) menu.add_separator() directoryPath = skeinforge_craft.getPluginsDirectoryPath() directoryFolders = settings.getFolders(directoryPath) pluginFileNames = skeinforge_craft.getPluginFileNames() for pluginFileName in pluginFileNames: pluginFolderName = pluginFileName + '_plugins' pluginPath = os.path.join(directoryPath, pluginFileName) if pluginFolderName in directoryFolders: addSubmenus(menu, pluginFileName, os.path.join(directoryPath, pluginFolderName), pluginPath) else: settings.ToolDialog().addPluginToMenu(menu, pluginPath)
def __init__(self): 'Set the default settings, execute title & settings fileName.' skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName('Profile Type: ', self ) self.profileSelection = settings.MenuButtonDisplay().getFromName('Profile Selection: ', self) addToProfileMenu( self.profileSelection, self.profileType, self ) settings.LabelDisplay().getFromName('Search:', self ) reprapSearch = settings.HelpPage().getFromNameAfterHTTP('github.com/ahmetcemturan/SFACT', 'SFACT Update', self) skeinforgeSearch = settings.HelpPage().getFromNameAfterHTTP('www.reprapfordummies.net/index.php/softwaresection/44-gcode-generators/49-sfact-homepage', 'SFACT Help', self ) skeinforgeSearch.column += 6 webSearch = settings.HelpPage().getFromNameAfterHTTP('www.reprap.org', 'Reprap', self) webSearch.column += 4 versionText = archive.getFileText( archive.getVersionFileName() ) self.version = settings.LabelDisplay().getFromName('Version: ' + versionText, self) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge'
def __init__(self): 'Set the default settings, execute title & settings fileName.' skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName('Profile Type: ', self ) self.profileSelection = settings.MenuButtonDisplay().getFromName('Profile Selection: ', self) addToProfileMenu( self.profileSelection, self.profileType, self ) settings.LabelDisplay().getFromName('Search:', self ) reprapSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_reprap.html', 'Reprap', self) skeinforgeSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_skeinforge.html', 'Skeinforge', self ) skeinforgeSearch.column += 2 webSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_web.html', 'Web', self) webSearch.column += 4 versionText = archive.getFileText( archive.getVersionFileName() ) self.version = settings.LabelDisplay().getFromName('Version: ' + versionText, self) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge'
def __init__(self): """Set the default settings, execute title & settings fileName.""" skeinforge_profile.addListsToCraftTypeRepository('skeinforge_application.skeinforge.html', self) self.fileNameInput = settings.FileNameInput().getFromFileName( fabmetheus_interpret.getGNUTranslatorGcodeFileTypeTuples(), 'Open File for Skeinforge', self, '') self.profileType = settings.MenuButtonDisplay().getFromName('Profile Type: ', self ) self.profileSelection = settings.MenuButtonDisplay().getFromName('Profile Selection: ', self) addToProfileMenu( self.profileSelection, self.profileType, self ) settings.LabelDisplay().getFromName('Search:', self ) reprapSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_reprap.html', 'Reprap', self) skeinforgeSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_skeinforge.html', 'Skeinforge', self ) skeinforgeSearch.column += 2 webSearch = settings.HelpPage().getFromNameAfterHTTP('members.axion.net/~enrique/search_web.html', 'Web', self) webSearch.column += 4 versionText = archive.getFileText( archive.getVersionFileName() ) self.version = settings.LabelDisplay().getFromName('Version: ' + versionText, self) settings.LabelDisplay().getFromName('', self) importantFileNames = ['craft', 'profile'] getRadioPluginsAddPluginGroupFrame(archive.getSkeinforgePluginsPath(), importantFileNames, getPluginFileNames(), self) self.executeTitle = 'Skeinforge' self.repositoryDialog = None
def getPluginFileNames(): 'Get skeinforge plugin fileNames.' return archive.getPluginFileNamesFromDirectoryPath( archive.getSkeinforgePluginsPath())
def getPluginsDirectoryPath(): "Get the plugins directory path." return archive.getSkeinforgePluginsPath('profile_plugins')
def addToMenu( master, menu, repository, window ): "Add a tool plugin menu." metaFilePath = archive.getSkeinforgePluginsPath('meta.py') settings.addPluginsParentToMenu(skeinforge_meta.getPluginsDirectoryPath(), menu, metaFilePath, skeinforge_meta.getPluginFileNames())
def getPluginsDirectoryPath(): "Get the plugins directory path." return archive.getSkeinforgePluginsPath("craft_plugins")
def getPluginFileNames(): 'Get skeinforge plugin fileNames.' return archive.getPluginFileNamesFromDirectoryPath(archive.getSkeinforgePluginsPath())
def getPluginsDirectoryPath(): """Get the plugins directory path.""" return archive.getSkeinforgePluginsPath('analyze_plugins')
def addToMenu(master, menu, repository, window): "Add a tool plugin menu." analyzeFilePath = archive.getSkeinforgePluginsPath('analyze.py') pluginsDirectoryPath = skeinforge_analyze.getPluginsDirectoryPath() settings.addPluginsParentToMenu(pluginsDirectoryPath, menu, analyzeFilePath, skeinforge_analyze.getPluginFileNames())