def on_frontend_change(self):
		""" Focus on the frontend of the current module. """
		
		# Check if the frontend is glade (or a derivative), otherwise it's useless ;-)
		if "glade" in self.main_settings["frontend"]:
			if not self.pages_built:
				# We should wait until the pages are built
				while not self.pages_built:
					time.sleep(0.3)
						
			self.current_frontend.objects = self.modules_objects[self.current_module.package.replace("linstaller.modules.","")]
			
			m.handle_exception(self.current_frontend.on_objects_ready_internal)
			m.handle_exception(self.current_frontend.on_objects_ready)
			
			# Set header now.
			self.set_header("info",
							self.current_frontend.header_title,
							self.current_frontend.header_subtitle,
							self.current_frontend.header_icon
			)
			
			
			GObject.idle_add(m.handle_exception, self.current_frontend.pre_ready)
			GObject.idle_add(m.handle_exception, self.current_frontend.ready)
			
			# Set sensitivity, the frontend is up and running
			#GObject.idle_add(self.main.set_sensitive, True)
			
			GObject.idle_add(self.current_frontend.process)
			self.hide_spinner()
Beispiel #2
0
	def _progress(self):
		try:
			m.handle_exception(self.progress)
		except:
			self.parent.module_exit1()