I have this function as part of my code and I am trying to move from tk to pyqt, but I do not have much experience in pyqt. I am trying to generate a list of Tkinter string vari
There are a few differences between pyQt and Qt. One important difference is that there is no explicit need for QString (see here). pyQt is fully compatible with Python built-in string type. Your code will look something like this.
def generate_stringvars(self):
temp_entriesx = []
count = 0
while count < 21:
temp_entriesx.append("")
count += 1
return temp_entriesx