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

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

Codemy.com

5 лет назад

55,582 Просмотров

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


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

Stephen Hiscock
Stephen Hiscock - 09.09.2023 23:05

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?

Ответить
Diana Bor
Diana Bor - 24.07.2023 01:49

i am currently enrolled in your codemy course and need the source code for this please?

Ответить
Paul M
Paul M - 05.02.2023 17:15

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.

Ответить
Swatcom Computers
Swatcom Computers - 29.01.2023 18:07

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

Ответить
Ursula Hendriks-Gräfe
Ursula Hendriks-Gräfe - 10.10.2022 11:49

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

Ответить
JAYS EDITS
JAYS EDITS - 03.10.2022 04:08

Is the source code available?

Ответить
Music 9
Music 9 - 05.07.2022 10:12

Can you explain how to save image to sqlit3 database, and how to read it using tkinter please

Ответить
el mo5 2
el mo5 2 - 05.03.2022 22:09

cursor.execute("SELECT FROM address WHERE oid ="+record_id ) sqlite3.operationalError: incomplete input
can someone help me

Ответить
זכריה Zach Fenton פנטון
זכריה Zach Fenton פנטון - 02.02.2022 05:14

Great video, i have a problem with record_id = delete_box.get(). It's saying its not finding get().

Ответить
chris gettier
chris gettier - 20.01.2022 19:29

Nice

Ответить
superryan94
superryan94 - 17.08.2021 06:06

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?

Ответить
Vancouver Vibes
Vancouver Vibes - 26.06.2021 15:11

Error is showing that—

list index out of range

Ответить
mee
mee - 10.06.2021 06:35

Sir why can't u use toplevel for opening a new window

Ответить
Allifmaal Engineering Limited
Allifmaal Engineering Limited - 17.05.2021 19:50

The update functions updates everything...

Ответить
Danesh Patel
Danesh Patel - 15.04.2021 06:31

How we can save the Data created in excel

Ответить
Gayatri Nadar
Gayatri Nadar - 26.02.2021 12:47

This helped a lot.. Thanks :)

Ответить
Rafael Perez Mederos
Rafael Perez Mederos - 19.02.2021 07:28

Why isn’t my data appearing?

Ответить
george damian
george damian - 24.12.2020 22:16

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.

Ответить
Vamprock
Vamprock - 01.12.2020 19:19

cursor.execute("SELECT * FROM address WHERE oid ="+ _oid_)
sqlite3.OperationalError: incomplete input
I am getting this error
can you pls help

Ответить
Dizzy Dizzy
Dizzy Dizzy - 27.11.2020 15:49

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!

Ответить
aribi ali
aribi ali - 26.11.2020 09:03

amazing !!! U SHOULD KNOW THAT I LOVE YOU XD

Ответить
Raxer
Raxer - 23.11.2020 17:11

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?

Ответить
Mister Mayhem
Mister Mayhem - 18.11.2020 21:39

incomplete input error?

Ответить
Bakiya kannan
Bakiya kannan - 22.10.2020 14:36

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...

Ответить
Parsa Bahrambeik
Parsa Bahrambeik - 03.10.2020 15:37

Hi, thank you very much for your video.

Ответить
Parsa Bahrambeik
Parsa Bahrambeik - 03.10.2020 15:36

Hi, thank you very much for your video.

Ответить
Marty Georgiev
Marty Georgiev - 26.08.2020 19:56

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?

Ответить
general pinochet
general pinochet - 17.07.2020 15:50

vid idea: make a code editor in tkinter

Ответить
Mahdi Olamaei
Mahdi Olamaei - 09.07.2020 18:37

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?

Ответить
Firezer Wudneh
Firezer Wudneh - 13.05.2020 14:21

Great tutorials !! Wanted to ask ...does opening a new window with the Toplevel commnad differ from using the tk??

Ответить
GS2
GS2 - 01.05.2020 14:20

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?

Ответить
Matěj Křenek
Matěj Křenek - 30.04.2020 22:08

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?

Ответить
prajwal ghatage
prajwal ghatage - 23.02.2020 05:08

For def edit execution (c.execute) it is giving incomplete input error

Ответить
Ferdi Vefa
Ferdi Vefa - 24.01.2020 11:54

Thanks very wel explained

Ответить
Sanket Rasal
Sanket Rasal - 18.09.2019 19:57

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'

Ответить