Mar-25-2020, 07:04 AM
Hi, I am trying to get a variable that I set in a class into another .py file. A snippet of the code below:
Thanks in advance.
class Ui_MainWindow(object): #this is the class of the first file, there is more stuff in here on the actual file def payment(self): self.testvar = "test"I am trying to get the variable testvar in another python file. I am not good with classes so I am not sure if this is possible.
Thanks in advance.