Python Forum
[PyQt] pyqt5 comobox insert into mysql - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: GUI (https://python-forum.io/Forum-GUI)
+--- Thread: [PyQt] pyqt5 comobox insert into mysql (/Thread-PyQt-pyqt5-comobox-insert-into-mysql)



pyqt5 comobox insert into mysql - Weballround - Jan-10-2019

Hello All,

Can someone please lead me in the right direction as I've been search for a why to do this for months.
So far using textedit date edit works 100%.

Here is part of my code:
cur.execute("INSERT INTO
"VALUES('%s', ''.join(self.lineEdit_9.text()),
''.join(self.dateEdit_10.text()),


If there is maybe another way to do a drop down select instead of comobox that will also be great.

Hope this is make sense.

Thanks you.


RE: pyqt5 comobox insert into mysql - nilamo - Jan-10-2019

What's the difference between a drop down, and a combo box? Aren't those just different terms for the same thing?


RE: pyqt5 comobox insert into mysql - Weballround - Jan-11-2019

(Jan-10-2019, 10:52 PM)nilamo Wrote: What's the difference between a drop down, and a combo box? Aren't those just different terms for the same thing?

Hi Nilamo, you are 100% correct, Combo Box is a input widget to make a drop down menu:-)
But you never know in the world of computers maybe instead of using the "Combo Box" there
is another way to do the something. We have brilliant meads around Us.