Using Databases With TKinter - Python Tkinter GUI Tutorial #19

Using Databases With TKinter - Python Tkinter GUI Tutorial #19

Codemy.com

5 лет назад

188,043 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Mamma Sanne
Mamma Sanne - 19.04.2023 22:38

💯💯💯💯💯

Ответить
Ashik Grg
Ashik Grg - 27.03.2023 04:33

Please make a video on "Fetching data from mysql database randomly"

Ответить
Rithik Saran
Rithik Saran - 23.03.2023 22:17

sir, If i create a database in my system for my python app and send copies of my app to other systems, Will the systems connect with the database in my system when a 3rd user saves data in the database?

Ответить
Ian Levitt
Ian Levitt - 08.01.2023 08:09

CREATE TABLE IF NOT EXISTS addresses. then no need to comment out the code !

Ответить
Sameer Khanna
Sameer Khanna - 02.01.2023 20:39

Thanks for this great tutorial

Ответить
didier Leprince
didier Leprince - 30.12.2022 22:10

Un big merci (:

Ответить
DJ HA
DJ HA - 20.12.2022 16:25

Walter

Ответить
ラリー
ラリー - 15.12.2022 07:15

We have to do 'pip install pillow' before using PIL.
Anyway I really appreciate your great videoes.

Ответить
Paul M
Paul M - 09.12.2022 13:28

Hello John,
With the help of this Sqlite3 tutorial and one video of yours in which to switch between windows, I succeeded to produce a "Menu" window in which two buttons. One button asking for a "def" to add data to a database, and one button, asking for a "def" to query.
I just now have to find out how to make disappear the "menu" window, when I move to the add data window, and how to make the "menu" window reappear by clicking some button in the add window. But. I am thrilled because you showed me the way. Thanks. I continue my quest :) Paul

Ответить
Pranya Jain
Pranya Jain - 07.12.2022 08:09

is this error-checked?

Ответить
X ZEX
X ZEX - 30.08.2022 02:33

your videos are one of the few bests in YT , Bro code is awsome in detailed but fast learning and you make it as easy as possible i want to knopw how your work are meant to us , i really thank you

Ответить
Ahmed Elsayed
Ahmed Elsayed - 14.08.2022 11:12

Why do you use "from tkinter import *" instead of just typing "import tkinter"?

Ответить
ASF
ASF - 17.06.2022 17:52

Pls tell me what does the database does

Ответить
MED Mabrouki
MED Mabrouki - 07.03.2022 22:10

Sir
I need to get messagebox error if identity already exists in database with aded function

Ответить
chris gettier
chris gettier - 17.01.2022 06:51

nice

Ответить
Abdo Ahmed
Abdo Ahmed - 12.12.2021 16:43

What if i want date datatype and want to sort records by date or something?

Ответить
Eliza Treglown
Eliza Treglown - 10.09.2021 03:38

Your videos have been an absolute life saver for my Year 12 digital Technologies course. when I run this database it comes up with the error no module names 'PIL'. Do you have nay suggestions to how to fix this?

Ответить
Alberto G.
Alberto G. - 04.09.2021 14:55

Thanks so much !!! Clear & Well explained. Regards.

Ответить
sanskar gr
sanskar gr - 04.08.2021 08:23

how to do
analogue clock in tkinter

Ответить
Leegang Halley
Leegang Halley - 24.06.2021 20:17

It says PIL module not found

Ответить
Leegang Halley
Leegang Halley - 24.06.2021 20:15

I copied the same code.. There was an error

Ответить
Sai charan Chitti
Sai charan Chitti - 23.06.2021 10:28

wow, literally this is the wonderful series of videos that i am really searching for. thank you sir you are sharing your knowledge a lot. it was really helping for my project.

Ответить
Nima Ojaghi
Nima Ojaghi - 26.05.2021 19:51

Hi My Brother And My Good Teacher Who I Learned Many Lessons From Your Teaching Here And I Have One Question That Is About My New Program Thst Is A Phonebook I Am Writing And My Question Is About Checkbutton And Button That I Want To Make One List Of Numbers With Name And Familly And Address From Database That I Made That This List Have 1 Checkbutton For Each Number And Two Buttons For Edit And Delete Now I Am Looking One Way To Know How These All Checkbuttons And Buttons In List Have Conection To Each Other That This Mean Every Record From Database In List With One Checkbutton And To Buttons For That Be In One Conection That When That Checkbutton Is Selected These To Buttons For Edit And Delete Work For That Button So We Have To Conection Here Every Record In This List Need To Be Conect With Checkbutton And Buttons To Operate On It And This Change In Database Be In See.
Thank You Very Much God Belesed You And Your Love And Your Familly .

Ответить
Stephen Aubrey Antonio
Stephen Aubrey Antonio - 27.04.2021 16:49

I just wanted to ask if you have a video about the user will input info and it will automatically be in the database. :)

Ответить
Baby Big Eyes
Baby Big Eyes - 15.04.2021 22:14

Sir how I can make a installer of python tkinter exe file which uses database

Ответить
Kaushallya De Alwis
Kaushallya De Alwis - 05.04.2021 16:13

Thank you so much John for the amazing tutorial; it was really helpful.

Ответить
Werner Lotter
Werner Lotter - 04.04.2021 14:46

Thanks John, these courses helped a great deal.

Ответить
ilias pelekis
ilias pelekis - 01.04.2021 22:26

hello while i am writing .....
c.execute("""CREATE TABLE addresses (
first_name text,
last_name, text
)""")

all appears as text in the (""" """) no commands!! what Is my syntax problem?

Ответить
Sumbul K.
Sumbul K. - 01.04.2021 09:49

Hello, do we still have to write code for creating tables and stuff if we have already created a table and inserted values in SQLite Studio? Or would it be okay if we only write the connect,sqlite3 code etc?

Ответить
William Kidwell
William Kidwell - 27.02.2021 18:56

This series, like most all your tuts is well explained, but I found myself dallying over it. I've got DB experience in other areas, but this didn't really sink in right away for some reason. What I found to be the problem was, the db kept getting "lost" after I closed out the browser, which you address when you speak of it getting placed in the c:/gui directory you use. But I use different notebooks in different directories under Anaconda/Jupyter, which unfortunately makes things more complex sometimes, so the data would get "lost", change around, etc., once I moved to another notebook or tutorial.

FWIW, if anyone has a similar problem, I found it helpful to use os.getcwd() and os.listdir() before setting up the db, so you know where you are working and what's there; and, then, run a simplified (non-tkinter) script to setup, and finally run os.listdir() a second time to ensure the creation of the db file. Then you can just use tkinter to browse the db, make updates, etc.. This technique also lend itself to browsing the db itself with sqlite3 sans tkinter, so - when you return to work in tkinter - you can know the db better, check your work, etc... $.02 HTH... :)

Ответить
teguh
teguh - 22.02.2021 07:22

what the purpose of root.iconbitmap('c:/gui/codemy.ico')? thanks later

Ответить
HolyCow
HolyCow - 14.02.2021 21:12

I don't completly got why it's better to use sqlite3 than using a simple .txt file to store data.

Could anyone explain it in a few words? :D

Ответить
// Luntyyy
// Luntyyy - 14.02.2021 04:38

Really helpful!

Ответить
teguh
teguh - 13.01.2021 04:48

sorry, what is meant by PIL import ImageTk, image. program doesn't work because of that

Ответить
Roasted Peanuts
Roasted Peanuts - 05.12.2020 17:54

Can you do one with SQL Server?

Ответить
Study Cafè ☕
Study Cafè ☕ - 25.11.2020 19:51

Why this channel has only 38k subs this channel deserves more and yes

Be sure to smash the like button

Ответить
Mr C i
Mr C i - 23.11.2020 13:00

Please I want a possible solution for these error on c.fetchall..... AttributeError: 'sqlite3.Connection' object has no 'fetchall'

Ответить
Anas Buhayh
Anas Buhayh - 13.11.2020 04:27

I love the way you simplify things! bless you

Ответить
Jake Speers
Jake Speers - 30.10.2020 22:48

Hey there, just came across this video in a google search and subscribed to you. I have a couple questions I'm hoping you can answer. I've just recently started learning python and have a decent grip on most of the basics. I'm currently working on a personal project and wondering if sqlite will work for this function. I've created a python program that scrapes web pages and converts the needed data to a clean json file. I'm now looking to add all json file data to sqlite database that I can query from my website. Is this possible to do with sqlite? I have about 5000 files (which would be index) and each file only contains text, with about 30 columns of data. Sorry for the long post, just wondering if I will be able to learn this within these videos. Also do you happen to have any videos about querying sqlite databases from websites? Thanks!

Ответить
Κυανός Αστέρας
Κυανός Αστέρας - 23.10.2020 14:51

"ImportError: DLL load failed while importing _sqlite3: The specific module could not be found."
I have installed sqlite3.dll and all demanded files according to Python's site, but I still get the same error. I want to follow these database courses, but with this error I am forced to stay here. Any ideas?

Ответить
ebaad khan
ebaad khan - 11.10.2020 11:26

how to connect our app to a server
plz tell us sir if u know plz i am waiting for this video plz and you are our only true teacher on the inter plz teach us how to connect our apps to a server.

Ответить
Pranali Bansode
Pranali Bansode - 09.10.2020 00:17

It getting error as no module PIL.. what should I do ?

Ответить
Adel Haiba
Adel Haiba - 07.10.2020 03:07

Wonderful, I need help to connect to Xampp SQL, can you help me with this or point me to a video which already exist?, Thanks and regards.

Ответить