Esempio n. 1
0
 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'
Esempio n. 2
0
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"
Esempio n. 4
0
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 )
Esempio n. 5
0
	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'
Esempio n. 6
0
	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'
Esempio n. 7
0
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 )
Esempio n. 8
0
 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"
Esempio n. 9
0
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)
Esempio n. 10
0
	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'
Esempio n. 11
0
	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'
Esempio n. 12
0
 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
Esempio n. 13
0
def getPluginFileNames():
    'Get skeinforge plugin fileNames.'
    return archive.getPluginFileNamesFromDirectoryPath(
        archive.getSkeinforgePluginsPath())
Esempio n. 14
0
def getPluginsDirectoryPath():
	"Get the plugins directory path."
	return archive.getSkeinforgePluginsPath('profile_plugins')
Esempio n. 15
0
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")
Esempio n. 17
0
def getPluginFileNames():
	'Get skeinforge plugin fileNames.'
	return archive.getPluginFileNamesFromDirectoryPath(archive.getSkeinforgePluginsPath())
Esempio n. 18
0
def getPluginsDirectoryPath():
	"""Get the plugins directory path."""
	return archive.getSkeinforgePluginsPath('analyze_plugins')
Esempio n. 19
0
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())