Python Forum
data from multiple Entry widgets
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data from multiple Entry widgets
#9
(Aug-15-2020, 10:02 PM)bowlofred Wrote:
(Aug-15-2020, 08:41 PM)beevee Wrote: I EXPECT line 4 to read the data from the associated entry and put it in an array.

I don't know what list/array you want it to be put in. Something like

mylist.append(xxx[a,b,c])
would put the value onto mylist. In the original line, there's no location for the data that you're looking up.

This is where my confusion is coming from. Let me be more specific:
1) I want to create 160 Entry widgets on the screen
2) I want a function to read the data in those 160 widgets.

The way I understand it, I could create 160 discrete Entry widgets like this:
 e1=Entry(...
e2=Entry(...
e160=Entry(...
Then to read the data I could write:
 xxx[0,0,0]=e1.get()
xxx[0,0,1]=e2.get()
xxx[7,4,3]=e160.get()
Am I correct so far?

So, I want to condense like I could in, say, C, using for loops so that I don't have to write 320 lines.
Reply


Messages In This Thread
data from multiple Entry widgets - by beevee - Aug-15-2020, 07:27 PM
RE: data from multiple Entry widgets - by bowlofred - Aug-15-2020, 07:51 PM
RE: data from multiple Entry widgets - by beevee - Aug-15-2020, 08:41 PM
RE: data from multiple Entry widgets - by bowlofred - Aug-15-2020, 10:02 PM
RE: data from multiple Entry widgets - by beevee - Aug-15-2020, 10:28 PM
RE: data from multiple Entry widgets - by beevee - Aug-15-2020, 08:59 PM
RE: data from multiple Entry widgets - by bowlofred - Aug-15-2020, 10:47 PM
RE: data from multiple Entry widgets - by beevee - Aug-15-2020, 11:57 PM
RE: data from multiple Entry widgets - by bowlofred - Aug-16-2020, 01:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python Project Structure for Modularity and Reusability with Multiple Entry Points b19wh33l5 0 248 Apr-24-2024, 12:21 PM
Last Post: b19wh33l5
  Load multiple Jason data in one Data Frame vijays3 6 1,660 Aug-12-2022, 05:17 PM
Last Post: vijays3
  Python, how to manage multiple data in list or dictionary with calculations and FIFO Mikeardy 8 2,737 Dec-31-2021, 07:47 AM
Last Post: Mikeardy
  How to map two data frames based on multiple condition SriRajesh 0 1,535 Oct-27-2021, 02:43 PM
Last Post: SriRajesh
  Load the data from multiple source files to one table amy83 2 2,660 Apr-27-2021, 12:33 AM
Last Post: Pedroski55
  API Gateway to manage multiple API's get put data robsuttonjr 2 2,596 Mar-09-2021, 04:09 PM
Last Post: robsuttonjr
  Pandas: how to split one row of data to multiple rows and columns in Python GerardMoussendo 4 7,020 Feb-22-2021, 06:51 PM
Last Post: eddywinch82
  How to filter out Column data From Multiple rows data? firaki12345 10 5,267 Feb-06-2021, 04:54 AM
Last Post: buran
  Fetching data from multiple tables in a single request. swaroop 0 1,944 Jan-09-2021, 04:23 PM
Last Post: swaroop
  How to fill parameter with data from multiple columns CSV file greenpine 1 1,708 Dec-21-2020, 06:50 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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