def __on_set_show(self, state):
    if ((state == QtCore.Qt.Checked) and (self.tensor_watch_list[self.watch_list_cur_pos].showstate == False)):
        self.__open_tensor_view(self.watch_list_cur_pos, self.tensor_watch_list[self.watch_list_cur_pos].picDIM)
        self.tensor_watch_list[self.watch_list_cur_pos].showstate = True
    if ((state != QtCore.Qt.Checked) and (self.tensor_watch_list[self.watch_list_cur_pos].showstate == True)):
        self.__close_tensor_view(self.watch_list_cur_pos)
        self.tensor_watch_list[self.watch_list_cur_pos].showstate = False
def __on_set_show(self, state):
    if ((state == QtCore.Qt.Checked) and (self.tensor_watch_list[self.watch_list_cur_pos].showstate == False)):
        self.__open_tensor_view(self.watch_list_cur_pos, self.tensor_watch_list[self.watch_list_cur_pos].picDIM)
        self.tensor_watch_list[self.watch_list_cur_pos].showstate = True
    if ((state != QtCore.Qt.Checked) and (self.tensor_watch_list[self.watch_list_cur_pos].showstate == True)):
        self.__close_tensor_view(self.watch_list_cur_pos)
        self.tensor_watch_list[self.watch_list_cur_pos].showstate = False