Quote Originally Posted by wysota View Post
In "changeValue" you refer to some object "self.lcdVolts" but where is that object? I don't see you assigning anything to "self.lcdVolts" anywhere. "self.lcdVolts" and "lcdVolts" are two totally different objects.
Well, I added "self" to all places where it seemed appropriate. The program runs fine with, or without, "self", but the value is still not transferred to the LCD.

I'm still missing something, but can't figure out what.
Thanks for your patience,
Don

Qt Code:
  1. def createTopRightGroupBox(self):
  2. self.topRightGroupBox = QtGui.QGroupBox("Top Right")
  3.  
  4. self.labelVolts = QtGui.QLabel("Volts/Div")
  5. self.labelVolts.setAlignment(QtCore.Qt.AlignHCenter)
  6.  
  7. self.comboVolts = QtGui.QComboBox()
  8. volts = ['2.5', '5.0', '10.0', '20.0']
  9. self.comboVolts.addItems(volts)
  10.  
  11. self.lcdVolts = QtGui.QLCDNumber()
  12.  
  13. layout = QtGui.QVBoxLayout()
  14. layout.addWidget(self.labelVolts)
  15. layout.addWidget(self.comboVolts)
  16. layout.addWidget(self.lcdVolts)
  17. layout.addStretch(1)
  18. self.topRightGroupBox.setLayout(layout)
  19.  
  20. # process signal
  21. self.connect(self.comboVolts, QtCore.SIGNAL('valueChanged(double)'), self.changeValue)
  22.  
  23. def changeValue(self, event):
  24. volts = self.comboVolts.value()
  25. self.lcdVolts.display(volts)
To copy to clipboard, switch view to plain text mode