def Kind_detail_view_left(self, sel):
""" Find the selected left hand object from a user selection with left button
in the kind_table that is displayed in the kind_tree view."""
description_text = ['description', 'beschrijving']
obj_descr_title = ['Information about ', 'Informatie over ']
cur_item = self.kind_tree.focus()
item_dict = self.kind_tree.item(cur_item)
values = list(item_dict['values'])
#print('Kind_detail_left:', cur_item, values) #[0], values[1], values[2:]
selected_object = self.Gel_net.uid_dict[str(values[0])]
# If info_kind is a description then display the destription in messagebox
if values[7] in description_text:
print('Information {} is not presented on a carrier but is as follows:\n {}'.\
format(values[4], selected_object.description))
messagebox.showinfo(obj_descr_title[self.lang_index] + selected_object.name, \
selected_object.description)
else:
print('Display kind details of: {}'.format(selected_object.name))
self.Define_and_display_kind_detail_view(selected_object)
if len(self.Gel_net.info_model) > 0:
self.Define_and_display_documents()
#------------------------------------------------------------------------
评论列表
文章目录