Example #1
0
	def save( self ):
		"Set the setting values to the display, save the new values."
		for menuEntity in self.repository.menuEntities:
			if menuEntity in self.repository.archive:
				menuEntity.setToDisplay()
		self.setInsetToDisplay()
		settings.writeSettings( self.repository )
Example #2
0
 def save(self):
     "Set the setting values to the display, save the new values."
     for menuEntity in self.repository.menuEntities:
         if menuEntity in self.repository.archive:
             menuEntity.setToDisplay()
     self.setInsetToDisplay()
     settings.writeSettings(self.repository)
Example #3
0
	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()
Example #4
0
	def destroyAllDialogWindows( self ):
		"Destroy all the dialog windows."
		settings.writeSettings( self.repository )
		return
		for menuEntity in self.repository.menuEntities:
			lowerName = menuEntity.name.lower()
			if lowerName in settings.globalRepositoryDialogListTable:
				globalRepositoryDialogValues = settings.globalRepositoryDialogListTable[ lowerName ]
				for globalRepositoryDialogValue in globalRepositoryDialogValues:
					settings.quitWindow( globalRepositoryDialogValue.root )
Example #5
0
 def destroyAllDialogWindows(self):
     "Destroy all the dialog windows."
     settings.writeSettings(self.repository)
     return
     for menuEntity in self.repository.menuEntities:
         lowerName = menuEntity.name.lower()
         if lowerName in settings.globalRepositoryDialogListTable:
             globalRepositoryDialogValues = settings.globalRepositoryDialogListTable[
                 lowerName]
             for globalRepositoryDialogValue in globalRepositoryDialogValues:
                 settings.quitWindow(globalRepositoryDialogValue.root)
Example #6
0
	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()
Example #7
0
	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()
Example #8
0
	def moveViewpointGivenCoordinates( self, moveCoordinate, shift, startCoordinate ):
		"Move the viewpoint given the move coordinates."
		if abs( startCoordinate - moveCoordinate ) < 3:
			startCoordinate = None
			self.canvas.delete( 'mouse_item' )
			return
		latitudeLongitude = LatitudeLongitude( startCoordinate, moveCoordinate, self.window, shift )
		self.repository.viewpointLatitude.value = latitudeLongitude.latitude
		self.repository.viewpointLatitude.setStateToValue()
		self.repository.viewpointLongitude.value = latitudeLongitude.longitude
		self.repository.viewpointLongitude.setStateToValue()
		startCoordinate = None
		settings.writeSettings( self.repository )
		self.window.update()
		self.destroyEverything()
Example #9
0
 def moveViewpointGivenCoordinates(self, moveCoordinate, shift,
                                   startCoordinate):
     "Move the viewpoint given the move coordinates."
     if abs(startCoordinate - moveCoordinate) < 3:
         startCoordinate = None
         self.canvas.delete('mouse_item')
         return
     latitudeLongitude = LatitudeLongitude(startCoordinate, moveCoordinate,
                                           self.window, shift)
     self.repository.viewpointLatitude.value = latitudeLongitude.latitude
     self.repository.viewpointLatitude.setStateToValue()
     self.repository.viewpointLongitude.value = latitudeLongitude.longitude
     self.repository.viewpointLongitude.setStateToValue()
     startCoordinate = None
     settings.writeSettings(self.repository)
     self.window.update()
     self.destroyEverything()
Example #10
0
 def setToDisplaySave(self, event=None):
     "Set the setting values to the display, save the new values."
     for menuEntity in self.menuEntities:
         if menuEntity in self.archive:
             menuEntity.setToDisplay()
     settings.writeSettings(self)
Example #11
0
	def setToDisplaySave( self, event = None ):
		"Set the setting values to the display, save the new values."
		for menuEntity in self.menuEntities:
			if menuEntity in self.archive:
				menuEntity.setToDisplay()
		settings.writeSettings( self )