Example #1
0
 def display(self, item):
     Render.clear()
     Render.header(self.header)
     item_info = LL_API.get_info(item)
     Render.the_info_window(item_info)
     if self.edit_window != None:
         Render.tool_bar(BUTTONS)
     Render.the_border()
 def display(self, edited_info, edit_index, buttons):
     Render.clear()
     Render.header(self.header)
     item_info = []
     for info in edited_info:
         item_info += [info[0:INDEX_OF_EDIT_PERMISSION_BOOL]]
     Render.the_info_window(item_info, True, edit_index)
     Render.tool_bar(buttons)
     Render.the_border()
Example #3
0
 def display(self, new_item_info, edit_index, buttons):
     Render.clear()
     Render.header(self.header)
     info_list = []
     for i in range(len(new_item_info)):
         if new_item_info[i] is None:
             info_list += [[self.info_names[i], "+"]]
         else:
             info_list += [[self.info_names[i], new_item_info[i]]]
     Render.the_info_window(info_list, True, edit_index)
     Render.tool_bar(buttons)
     Render.the_border()
Example #4
0
    def display(self, new_item_info, edit_index, buttons):
        Render.clear()
        Render.header(self.header)
        info_list = []
        if new_item_info[0] is None:
            info_list += [[self.info_names[0], str(new_item_info[1])]]
        else:
            info_list += [[self.info_names[0], new_item_info[0].get_airport()]]

        info_list += [[self.info_names[1], str(new_item_info[1])]]
        Render.the_info_window(info_list, True, edit_index)
        Render.tool_bar(buttons)
        Render.the_border()
Example #5
0
    def display(self, edit_info, edit_index, buttons):
        Render.clear()
        Render.header(self.header)
        indent_display_info = []


        # formatting data for indent_info_function
        info_format_list = []
        size_of_list = 3 + len(edit_info[COPILOT_LIST_INDEX]) + len(edit_info[FLIGHT_ATTENDANT_LIST_INDEX])
        for i in range(size_of_list):
            item_selected, item_type_str = Voyage_Edit_Window.__get_edit_info_item_and_type(edit_info, i)
            if item_selected is None:
                info_format_list += [[item_type_str, "+"]]
            else:
                info_format_list += [[item_type_str, item_selected.get_name()]]

        # fixing arrow being on cabin crew or pilot header

        Render.the_info_window(info_format_list, edit=True, edit_index=edit_index)
        Render.tool_bar(buttons)
        Render.the_border()