def __on_remove_watch(self):
    self.__close_tensor_view(self.watch_list_cur_pos)
    del self.tensor_watch_list[self.watch_list_cur_pos]
    item_num = len(self.tensor_watch_list)
    if ((self.watch_list_cur_pos >= item_num) and (item_num > 0)):
        self.watch_list_cur_pos = (item_num - 1)
    if (self.cur_list_type == 0):
        list = self.tensor_select_list
        pos = self.select_list_cur_pos
    else:
        list = self.tensor_watch_list
        pos = self.watch_list_cur_pos
    self.main_window.update_tensor_list(list_type=self.cur_list_type, list=list, pos=pos, reset_pos=False)
def __on_remove_watch(self):
    self.__close_tensor_view(self.watch_list_cur_pos)
    del self.tensor_watch_list[self.watch_list_cur_pos]
    item_num = len(self.tensor_watch_list)
    if ((self.watch_list_cur_pos >= item_num) and (item_num > 0)):
        self.watch_list_cur_pos = (item_num - 1)
    if (self.cur_list_type == 0):
        list = self.tensor_select_list
        pos = self.select_list_cur_pos
    else:
        list = self.tensor_watch_list
        pos = self.watch_list_cur_pos
    self.main_window.update_tensor_list(list_type=self.cur_list_type, list=list, pos=pos, reset_pos=False)