Python Forum
add entries and labels to the window tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
add entries and labels to the window tkinter
#1
Basically i want to build an app where the user can add entries and labels to the window
i have the following code

global cur_row,count
    cur_row+=1
    globals()[f'lbl{count}']=Label()
    globals()[f"lbl{count}"].grid(row=cur_row,column=0)
    globals()[f"ent{count}"]=Entry()
    globals()[f"ent{count}"].grid(row=cur_row,column=1)
    count+=1
the problem is the labels are not generated. All i get is the entry. I want a way to generate labels as well as entries. after that i need a way to retrieve all of the entry inputs and save them to a dictionary or csv file
Reply


Messages In This Thread
add entries and labels to the window tkinter - by jacksfrustration - Oct-10-2023, 02:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  wrong entries in sqlite database and tkinter epsilondatum 2 400 Apr-23-2024, 04:48 PM
Last Post: epsilondatum
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 1,916 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  how to open a popup window in tkinter with entry,label and button lunacy90 1 946 Sep-01-2023, 12:07 AM
Last Post: lunacy90
Bug tkinter.TclError: bad window path name "!button" V1ber 2 851 Aug-14-2023, 02:46 PM
Last Post: V1ber
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,211 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Closing Threads and the chrome window it spawned from Tkinter close button law 0 1,749 Jan-08-2022, 12:13 PM
Last Post: law

Forum Jump:

User Panel Messages

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