I'm a beginner studying coding by myself.
While programming through PYQT5, there is a repetitive code, so I want to reduce it, so I'm asking you a question because it didn't work well.
The part I want to reduce is
def URL clean(self) part.
LineEdit_1-10 in the corresponding part anyway, and it is repeated through the for statement
I was going to shorten it like this, but self. It seems that a+nums after the class is not recognized as a variable at all.
How do we solve this?
Thank you.python class pyqt
Rather than writing a variable name such as
lineEdit_n, create as many widgets as necessary in the array
lineEdit... If you make it like this, it would be good to deal with it all at once, such as for.
© 2022 pinfo. All rights reserved.