Exemplo n.º 1
0
class BodyListManager(QObject):
	def __init__(self, listWidget):
		self.listWidget = listWidget;
		self.listWidget.setDragDropMode(QAbstractItemView.DragOnly);
		self.listModel = BodyListModel();
		self.listWidget.setModel(self.listModel)

	def updateList(self, bodies):
		self.listModel.setStringList(list(bodies.keys()))
Exemplo n.º 2
0
	def __init__(self, listWidget):
		self.listWidget = listWidget;
		self.listWidget.setDragDropMode(QAbstractItemView.DragOnly);
		self.listModel = BodyListModel();
		self.listWidget.setModel(self.listModel)