Using SQL in Pycharm
已回答
I am new to python, so to learn it I have started a small new project for myself. Trouble is, the small application I am building has a user insert some information and I wanted to store that information in a database. So I created a connection to a SQLite (Xerial) database and created the table that I want, but now I am unsure how to send the information from the python GUI to the database when the user presses the submit button on the GUI. I am using PyCharm as my IDE and PyQt5 for the GUI work.
请先登录再写评论。
Please, consult the related pyqt documentation: https://www.tutorialspoint.com/pyqt/pyqt_database_handling.htm .
Thank you! I will see if I can get something from that working. I was originally just using the data source view in PyCharm to easily create the sqlite database and easily view it, but I wasn't sure how to manipulate the data with the python code in that scenario. I might just have to change my approach and use the pyqt database handling in order to make things easier for me. I appreciate the suggestion!!!