Posts by JonathasFrs • 3 points
6 posts
-
0
votes1
answer19
viewsA: Incorrect data being entered in the list widget
Problem solved after I changed the code to the following form/syntax: def funcao_1(): # função/método responsável por buscar código correspondente no banco de dados e retornar dados na tela cursor =…
-
-1
votes1
answer19
viewsQ: Incorrect data being entered in the list widget
After a lot of trying, I managed to make my program that is a box simulator (commercial automation) the possibility to multiply the items (instead of the box register one by one, when it is of the…
-
0
votes1
answer33
viewsQ: Connect a lineEdit to a class method
am having a problem giving the following message "Typeerror: query'" I have a project that so far works well in structured paradigm, but I’m trying to rewrite the code in POO. I have the following…
-
0
votes1
answer73
viewsA: How to make the Qt designer lineEdit receive an integer or float with Python
Guys, I solved the problem, before I used this code: def chamar_segunda_tela(): tela_total.show() cursor.execute('SELECT SUM(preco) FROM tb_registrados;') for t in cursor.fetchall(): total = t…
-
-1
votes1
answer73
viewsQ: How to make the Qt designer lineEdit receive an integer or float with Python
I would like to know how to make a lineEdit of Qt designer receive a value of type integer or float and armezene that value received in a variable, because, I need to do mathematical operations with…
-
-1
votes1
answer73
viewsQ: Return on screen a database information with Python
I have the following code: # Lista dos produtos produtos = {'1':('Dipirona 500mg 10 cp', 2.99), '2':('Paracetamol 500mg 10 cp', 4.7), '3':('Ibuprofeno 600 mg 4 cp ', 5.98), '4':('Dorflex 10 cp',…