Example #1
0
 def __init__(self, shell, with_menu=False):
     Screen.__init__(self, shell)
     self.init_command_map()
     if with_menu:
         title = self.create_title()
         buttons = self.create_buttons()
         self.add_title_and_buttons(title, buttons)
Example #2
0
	def __init__(self, shell, with_menu = False):
		Screen.__init__(self, shell)
		self.init_command_map()
		if with_menu:
			title = self.create_title()
			buttons = self.create_buttons()
			self.add_title_and_buttons(title, buttons)