Exemplo n.º 1
0
class MologramWidget(QtGui.QWidget):
	""" Constructor """
	def __init__(self,main_widget):

		# Call parent class constructor
		super(MologramWidget,self).__init__()

		# Assign main layout
		self.main_widget = main_widget

		# Call child constructor
		self.initUI()

	def initUI(self):

		self.mologramLineRow = MologramLineRow(self.main_widget)
		self.mologramField   = MologramField(self.main_widget)

		hbox = QtGui.QHBoxLayout()
		self.setLayout(hbox)

		hbox.addWidget(self.mologramLineRow)
		hbox.addStretch(1)
		hbox.addWidget(self.mologramField)
		hbox.addStretch(1)

	def updateDisplay(self):
		self.mologramLineRow.updateDisplay()
		self.mologramField.updateDisplay()

	def set_in_movement(self,state):		
		self.mologramLineRow.set_in_movement(state)
		self.mologramField.set_in_movement(state)
Exemplo n.º 2
0
	def initUI(self):

		self.mologramLineRow = MologramLineRow(self.main_widget)
		self.mologramField   = MologramField(self.main_widget)

		hbox = QtGui.QHBoxLayout()
		self.setLayout(hbox)

		hbox.addWidget(self.mologramLineRow)
		hbox.addStretch(1)
		hbox.addWidget(self.mologramField)
		hbox.addStretch(1)