def create_list_view(self):
    self.list_view = QtGui.QListView(self)
    self.list_view.main = self
    self.list_view.setEditTriggers(QtGui.QListView.NoEditTriggers)
    self.list_view.setMouseTracking(True)
    self.list_model = QtGui.QStandardItemModel()
    self.list_view.setModel(self.list_model)
    entries = [str(i) for i in range(50)]
    for i in entries:
        item = QtGui.QStandardItem(i)
        self.list_model.appendRow(item)
    self.list_view.setMinimumSize(170, 200)
    self.list_view.move(310, 130)
    self.list_view.clicked.connect(self.action_cb['on_tensor_select'])
def create_list_view(self):
    self.list_view = QtGui.QListView(self)
    self.list_view.main = self
    self.list_view.setEditTriggers(QtGui.QListView.NoEditTriggers)
    self.list_view.setMouseTracking(True)
    self.list_model = QtGui.QStandardItemModel()
    self.list_view.setModel(self.list_model)
    entries = [str(i) for i in range(50)]
    for i in entries:
        item = QtGui.QStandardItem(i)
        self.list_model.appendRow(item)
    self.list_view.setMinimumSize(170, 200)
    self.list_view.move(310, 130)
    self.list_view.clicked.connect(self.action_cb['on_tensor_select'])