Python Forum
[Tkinter] Trying to add data into a shelf from a submit button
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Trying to add data into a shelf from a submit button
#7
I again appreciate the help
I added a for loop to print out the values in the shelf and it seems to over write the files previous data. If I enter numerous input it will only I assume store the last entry. The for loop seen in the below code:
 
#print shelf
            print("the values of the shef are ", list(db.values()))
            print("the keys of the shef are ", list(db.keys()))
            for key, value in db.items():
                print(key, ' : ', value)   
Ive tried a few different options but it still only returns the last imputed value. I opened the .dir file and it also shows one line even though numerous were entered..
thanks again
Reply


Messages In This Thread
RE: Trying to add data into a shelf from a submit button - by TWB - Jan-06-2023, 10:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't get tkinter button to change color based on changes in data dford 4 3,573 Feb-13-2022, 01:57 PM
Last Post: dford
  Button to add data to database and listbox SalsaBeanDip 1 2,995 Dec-06-2020, 10:13 PM
Last Post: Larz60+
  Database Submit Entry Syntax Error Melford 27 8,237 Jan-27-2020, 04:20 PM
Last Post: Denni
  Problem with Submit button Tkinter Reldaing 2 3,769 Jan-05-2020, 01:58 AM
Last Post: balenaucigasa
  [PyQt] Pyqt5: How do you make a button that adds new row with data to a Qtablewidget YoshikageKira 6 7,267 Jan-02-2020, 04:32 PM
Last Post: Denni
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 5,133 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020