Python Tutorial GUI/Desktop app - Connection to DataBase/Populate Combo Box - part 5

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

In Sqlite3 I followed this path and it worked very well.




def fornCombo(self):
try:
self.banco = sqlite3.connect('Vendas.db')
self.cursor = banco.cursor()
cursor.execute("SELECT * FROM Fornecedor")
for row in enumerate (cursor):
if row[1]:
data = row[1]
Nome = data[1]


except Exception:
msg = QMessageBox()
msg.setText("Erro ao carregar Fornecedores")
msg.setWindowTitle("Erro!")
| QMessageBox.Cancel)
msg.exec_()


But your video showed me the way, I just adapted to Sqlite3 Thanks!

Daniel-nnoy
Автор

Thanks sir.It's very helpfull video

pragatics
Автор

sir plz make a video which is related to school financial system

pragatics
Автор

Hello can you help me?
I inserted data from a database table into my comboBox
Now I need to get the ID of this Table when I select the item in the ComboBox to insert in the foreign key of my second table. Can you do that?

Daniel-nnoy
Автор

How to make this Combobox autocompleate

kanishkakumarasiri