Feb-20-2017, 10:06 PM
You can't add items before you define them. As to where that should go, probably in the __init__, right?
But you never define what a self.MS is, or what a self.State is, so... you should probably do that :p Unless that's what's in Ui_MainWindow, I guess, but then it'd be self.ui.MS.
But you never define what a self.MS is, or what a self.State is, so... you should probably do that :p Unless that's what's in Ui_MainWindow, I guess, but then it'd be self.ui.MS.