Beispiel #1
0
	def addPluginToMenu( self, canvas, fileName, menu, name, suffix ):
		"Add the display command to the menu."
		self.canvas = canvas
		self.fileName = fileName
		self.name = name
		self.suffix = suffix
		menu.add_command( label = settings.getEachWordCapitalized( self.name ), command = self.display )
Beispiel #2
0
 def addPluginToMenu(self, canvas, fileName, menu, name, suffix):
     "Add the display command to the menu."
     self.canvas = canvas
     self.fileName = fileName
     self.name = name
     self.suffix = suffix
     menu.add_command(label=settings.getEachWordCapitalized(self.name),
                      command=self.display)
Beispiel #3
0
def writeContentsLine( hypertextFile, output ):
	"Write a line of the contents file."
	summarizedFileName = hypertextFile[ : hypertextFile.rfind( '.' ) ]
	numberOfDots = summarizedFileName.count( '.' )
	prefixSpaces = '  ' * numberOfDots
	if numberOfDots > 0:
		summarizedFileName = summarizedFileName[ summarizedFileName.rfind( '.' ) + 1 : ]
	capitalizedSummarizedFileName = settings.getEachWordCapitalized( summarizedFileName )
	output.write( '%s<a href="%s">%s</a><br>\n' % ( prefixSpaces, hypertextFile, capitalizedSummarizedFileName ) )
Beispiel #4
0
	def getFromMenuButtonDisplay( self, menuButtonDisplay, name, repository, value ):
		"Initialize."
		self.setToMenuButtonDisplay( menuButtonDisplay, name, repository, value )
		self.valueName = settings.getEachWordCapitalized( name )
		return self