I want to pull "self.t" from class Third and print the info in Class Fourth where it says "pass." How would I inherit it?
class Third(QWidget): def __init__(self, parent=None): super(Third, self).__init__() self.cp() def cp(self): for y in App.patientlist: if str(y[11]) == self.patnum: patselected = y self.t = patselected self.bbbb.show() class Fourth(QWidget): def __init__(self): super(Fourth, self).__init__() self.editor() def editor(self): pass ###I WANT self.t FROM CLASS THIRD PRINTED HERE.