How to save TextBox's Input in List or Variable ?
-
Hey Guys,
i have a code that filters the parameters for the calculation of a rectangle from the image name. However, sometimes the user may name the name according to the wrong nomenclature. This means that the program cannot filter the necessary parameters. Therefore it shows a question mark, as shown in the picture.
My goal is to give the user the possibility to manually enter the unrecognized parameter. I am new to PyQt5 and wanted to ask if this is possible ?
for example like that ?:
param_height[index] = self.lineEdit.NewTextInput()
Is there any possibility to to that ?
-
@elias_hh said in How to save TextBox's Input in List or Variable ?:
My goal is to give the user the possibility to manually enter the unrecognized parameter
Not sure I understand. Can't the user simply edit in the line edit?
-
@jsulm thank you for your respons,
The example I have given is a simplification. The actual application is a very complicated nomenclature. And it is time-consuming for the user to search and type in the parameters from the nomenclature. That is why this should happen automatically.
In the rare case that the code does not find any parameters, only then the user must remove the question mark (as shown in the picture) with his hand and type in the correct parameter. And this new parameter should then be saved immediately in the list of parameters.
In the picture you can see that a question mark is displayed in a LineEedit. To be smiple: I would like the user to type in this LineEdit a 10 and then save this 10 in a variable.