No video

Update A Record With SQLite - Python Tkinter GUI Tutorial #22

  Рет қаралды 57,074

Codemy.com

Codemy.com

Күн бұрын

Пікірлер: 79
@Codemycom
@Codemycom 4 жыл бұрын
▶️ Watch Entire Tkinter Playlist ✅ Subscribe To My KZbin Channel: bit.ly/2UFLKgj bit.ly/2IGzvOR ▶️ See More At: ✅ Join My Facebook Group: Codemy.com bit.ly/2GFmOBz ▶️ Learn to Code at Codemy.com ✅ Buy a Codemy T-Shirt! Take $30 off with coupon code: youtube1 bit.ly/2VC9WUN
@meaningfullife7075
@meaningfullife7075 4 жыл бұрын
12:40 That for loop is not necessary, you are editing just one record so you had to make it loop inside one record and without mentioning all the feilds of the one record :)
@elmo5269
@elmo5269 2 жыл бұрын
cursor.execute("SELECT FROM address WHERE oid ="+record_id ) sqlite3.operationalError: incomplete input can someone help me
@mrrobot3771
@mrrobot3771 2 жыл бұрын
same problem :/
@vidhiney
@vidhiney 3 ай бұрын
for the people of the future, its probably because your id number entry column is empty
@vamprock02
@vamprock02 3 жыл бұрын
cursor.execute("SELECT * FROM address WHERE oid ="+ _oid_) sqlite3.OperationalError: incomplete input I am getting this error can you pls help
@piwassana
@piwassana 3 жыл бұрын
cursor.execute("SELECT * FROM address WHERE oid ="+( _oid_))
@Lennardish
@Lennardish Жыл бұрын
He;llo John, with all the help of your explanations, I succeeded in having the update entry boxes in the root window. My root.geometry("750x600") is wide enough to have two sets of entry boxes next to each other. It took quite some thinking but finally it succeeded. Well, it is in fact just followint the instructions of the leader :) Thanks again.
@Codemycom
@Codemycom Жыл бұрын
Glad to hear it!
@no-one-gaming-
@no-one-gaming- 5 жыл бұрын
For updation when i use as you said entry object.insert it showing this error... entry_name.insert(0, record[0]) AttributeError: 'NoneType' object has no attribute 'insert'
@Raxer_th
@Raxer_th 3 жыл бұрын
In this video you create a new window with the "normal root" way. Hope you understand that) But in a previous you told us to use the Toplevel way. What are the differences?
@sailendrachettri8521
@sailendrachettri8521 3 жыл бұрын
If you create with using Toplevel, then whenever you close the main window the other window will also close automatically. but if you create using TK() then it not affected. Hope that make sense :)
@mahdiolamaei4021
@mahdiolamaei4021 4 жыл бұрын
hey thanks for the video. i have a problem that when i turn the project i made by tkinter and sqllite to an exe file it doesn't open and say can execute script file. can you help me with that? is because i'm using sqllite with it?
@Lennardish
@Lennardish 9 ай бұрын
Hello John, very clear your explanaion of queries. Maybe I missed something, but suppose there is a database, fir insyance of a VERY LARGE Family, with their birthdays. How can I select just ONE name from the database, and see on screen the information I need, just to be not rude to have forgotten their birthday^^?
@GS2YoutubeChannel
@GS2YoutubeChannel 4 жыл бұрын
Don't understand why you wouldn't use a Toplevel() window for this new window. In a previous video, you said to use Toplevels - surely you shouldn't deviate from this methodolgy?
@Codemycom
@Codemycom 4 жыл бұрын
You can do either. It depends on how you're going to use the window
@prajwalghatage7968
@prajwalghatage7968 4 жыл бұрын
For def edit execution (c.execute) it is giving incomplete input error
@Codemycom
@Codemycom 4 жыл бұрын
check your code
@Lennardish
@Lennardish 9 ай бұрын
Hello John, love your video's. I have tried to change the addresses database program. What I wanted was that I could find just one very specific record by asking : "What name are you looking for?" For instance like this: person = input("What name are you looking for? : ") The result should be that the program produces that one record with the data of that person. I was not successful. Can you please give some nformation about how to have that desired result? Thanks , Paul . Netherlands
@Codemycom
@Codemycom 9 ай бұрын
I have videos on the playlist that show you how to do that
@morrow.himself
@morrow.himself Жыл бұрын
How can I add the last name instead of adding the ID. I've been working on it for a long time, but I can't do it
@firezerwudneh85
@firezerwudneh85 4 жыл бұрын
Great tutorials !! Wanted to ask ...does opening a new window with the Toplevel commnad differ from using the tk??
@Codemycom
@Codemycom 4 жыл бұрын
Yes, it can differ in small ways.
@SwatcomComputers
@SwatcomComputers Жыл бұрын
Sir I have a question... mydb.execute ("select *from purchasetable where purhdate=?",[ mydate1.entry.get ()]) This query returns accurate data from my date picker widgets or database... But i have 2 dates choosers..the 2nd one is mydate2..now what should i do chanhes to this query to get records between these 2 date pickers...these date pickers are ttkbootstrap's offsprings...thank you
@matejkrenek5933
@matejkrenek5933 4 жыл бұрын
Hello, I have such a problem with update a record. When I click on the 'save record' button in second window (window where you can edit a record) it writes to me: c.execute("""UPDATE addresses SET sqlite3.OperationalError: no such column: zipcode" I even tried to copy your code from github. Do you know how to fix it?
@Codemycom
@Codemycom 4 жыл бұрын
Sorry, there's a problem with your code, or you haven't created a zipcode column in your database...either way I don't know how to fix it
@dizzydizzy4704
@dizzydizzy4704 3 жыл бұрын
In my database, not all the fields consist of text. Some of them are sliders from 1 to 5, and checkboxes Ho do I 'insert' the info from sliders and checkboxes into the edit function since neither sliders nor checkboxes have the 'insert' attribute? Thank you for your videos!
@zachfenton608
@zachfenton608 2 жыл бұрын
Great video, i have a problem with record_id = delete_box.get(). It's saying its not finding get().
@Codemycom
@Codemycom 2 жыл бұрын
What did you do different from the video?
@fredsmean
@fredsmean 3 жыл бұрын
Should I close the database connection at the end of the function? "Editor" or i called mine "update" function. To clarify. If so where do I place the connection closing statements.
@bakiyakannan3746
@bakiyakannan3746 3 жыл бұрын
Thank you for the video.While I am trying to execute this code I had an error like "name editor is not defined" on jupyter notebook.pls help me in this regard...
@Codemycom
@Codemycom 3 жыл бұрын
Don't use juypter notebooks for tkinter
@gayatrinadar5192
@gayatrinadar5192 3 жыл бұрын
This helped a lot.. Thanks :)
@Codemycom
@Codemycom 3 жыл бұрын
Very welcome
@dianabor188
@dianabor188 Жыл бұрын
i am currently enrolled in your codemy course and need the source code for this please?
@Codemycom
@Codemycom Жыл бұрын
All the code for this playlist is at: github.com/flatplanet/Intro-To-TKinter-KZbin-Course
@srbhiscock
@srbhiscock Жыл бұрын
Having problems with the icon on the Update window. Current version has me using PhotoImage to import the .ico file to a variable and the iconphoto property for the window. This works fine on the main window but not the new window with an error message saying; can't use "pyimage2" as iconphoto: not a photo image... Any ideas?
@Codemycom
@Codemycom Жыл бұрын
make your image variable global...though, not sure what you mean by "current version has you doing"...there is no current version requirement that's any different from any of my videos.
@dmskarunaratne80
@dmskarunaratne80 4 ай бұрын
try using - editor=tk.Toplevel(root). it works. ( multiple instances of Tk will not work in usual way for image handling)
@fvefa
@fvefa 4 жыл бұрын
Thanks very wel explained
@Codemycom
@Codemycom 4 жыл бұрын
Thanks for watching!
@aribiali3574
@aribiali3574 3 жыл бұрын
amazing !!! U SHOULD KNOW THAT I LOVE YOU XD
@Codemycom
@Codemycom 3 жыл бұрын
Thanks!
@allifmaalengineeringlimite9853
@allifmaalengineeringlimite9853 3 жыл бұрын
The update functions updates everything...
@mee8963
@mee8963 3 жыл бұрын
Sir why can't u use toplevel for opening a new window
@Codemycom
@Codemycom 3 жыл бұрын
You can
@Xboerefijn1
@Xboerefijn1 3 жыл бұрын
Would it be possible to have the the gui autoupdate when something in the database changes, or after a specific time like every second to keep up to date with the database?
@Codemycom
@Codemycom 3 жыл бұрын
Sure, I have videos on timers on the playlist
@novaploca2080
@novaploca2080 3 жыл бұрын
Hi Ryan have you managed to do that, I am having trouble. Either every second program opens another instance of window or rows get inserted after last insert.
@Xboerefijn1
@Xboerefijn1 3 жыл бұрын
@@novaploca2080 Yes. Though I have only my main window: I went for an infinite while loop. Inside I first deleted the contents of the cell and than insert new contents. I set a sleep time of 10ms to not make it to heavy on my computer while keeping the contents of the cell always up to date and uneditable.
@novaploca2080
@novaploca2080 3 жыл бұрын
@@Xboerefijn1 tnx man
@Music-bo8ig
@Music-bo8ig 2 жыл бұрын
Can you explain how to save image to sqlit3 database, and how to read it using tkinter please
@Codemycom
@Codemycom 2 жыл бұрын
save/read it as a blob type, in the same way you save anything
@Music-bo8ig
@Music-bo8ig 2 жыл бұрын
@@Codemycom but only displaying bainery code😥😥😥
@Codemycom
@Codemycom 2 жыл бұрын
@@Music-bo8ig then you did it wrong
@Music-bo8ig
@Music-bo8ig 2 жыл бұрын
@@Codemycom so what is the correct method can you tell us pleas
@Codemycom
@Codemycom 2 жыл бұрын
@@Music-bo8ig I don't have any videos on that because these days you don't hold images in databases, you upload them to a cdn and save the url of the image to the database as text.
@parsabahrambeik4381
@parsabahrambeik4381 3 жыл бұрын
Hi, thank you very much for your video.
@Codemycom
@Codemycom 3 жыл бұрын
Thank you too
@martygeorgiev6086
@martygeorgiev6086 4 жыл бұрын
I have all my 'items' 'strings' listed into a TreeView and I'm trying to make the same 'update record' from the SQLite DB. Could someone give me a hand, please?
@Codemycom
@Codemycom 4 жыл бұрын
I'll likely do videos on treeview soon
@Cric_shorts4091
@Cric_shorts4091 3 жыл бұрын
Error is showing that- list index out of range
@Codemycom
@Codemycom 3 жыл бұрын
What did you do differently from the video?
@Cric_shorts4091
@Cric_shorts4091 3 жыл бұрын
Sorry ! I got my mistake 😅
@Codemycom
@Codemycom 3 жыл бұрын
@@Cric_shorts4091 glad you got it sorted out
@daneshpatel5638
@daneshpatel5638 3 жыл бұрын
How we can save the Data created in excel
@Codemycom
@Codemycom 3 жыл бұрын
I have a course on python and excel with openpyxl
@rafaelperezmederos6958
@rafaelperezmederos6958 3 жыл бұрын
Why isn’t my data appearing?
@Codemycom
@Codemycom 3 жыл бұрын
You messed up the code somewhere
@mistermayhem988
@mistermayhem988 3 жыл бұрын
incomplete input error?
@Codemycom
@Codemycom 3 жыл бұрын
I need more info than that. What's the entire error.
@jaysedits9492
@jaysedits9492 Жыл бұрын
Is the source code available?
@Codemycom
@Codemycom Жыл бұрын
github.com/flatplanet/Intro-To-TKinter-KZbin-Course
@generalpinochet9821
@generalpinochet9821 4 жыл бұрын
vid idea: make a code editor in tkinter
@Codemycom
@Codemycom 4 жыл бұрын
Yeah I might do that in the future
@parsabahrambeik4381
@parsabahrambeik4381 3 жыл бұрын
Hi, thank you very much for your video.
@Codemycom
@Codemycom 3 жыл бұрын
Thank you too
女孩妒忌小丑女? #小丑#shorts
00:34
好人小丑
Рет қаралды 98 МЛН
나랑 아빠가 아이스크림 먹을 때
00:15
진영민yeongmin
Рет қаралды 14 МЛН
Just Give me my Money!
00:18
GL Show Russian
Рет қаралды 991 М.
Using Databases With TKinter - Python Tkinter GUI Tutorial #19
9:40
How to store data with Python and SQLite3
9:15
John Watson Rooney
Рет қаралды 43 М.
Use a Drag & Drop Editor to Make Tkinter Python GUI Applications!
11:16
SQLite vs PostgreSQL or MySQL
15:07
Stephen Blum
Рет қаралды 10 М.
How to create Databases in Python with SQLite
1:02:49
Kevin McAleer
Рет қаралды 10 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 218 М.
The grid layout method in tkinter
22:44
Atlas
Рет қаралды 30 М.
Connect Treeview To Database - Python Tkinter GUI Tutorial #174
17:36