473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Screen Input() for filling list to be used later in program

Is it possible to use a screen input() function to enter data from the keyboard into a list consisting of multiple x and y positional values, i.e., ([x1,y1], [x2,y2], etc.) that can then be called for later processing?

If so, please show a simple example in Python 2.6 source code.

Thanks,



end
Mar 14 '12 #1
4 2085
bvdet
2,851 Expert Mod 2GB
Yes. Show us what you have tried so far.

I would suggest prompting the user for several entries in this format: "x,y" You can split the x and y values on the comma. If the user enters a blank, proceed to process the list.
Mar 14 '12 #2
Thanks for your response,

The Python tutorial examples all show any lists included in a script before the script is run. I have written the Surveyor's Formula program in Liberty BASIC with a user's screen input function but cannot determine how to do the same in Python. I just need a simple example of a screen user forming and filling a list after a Python script has commenced.

end
Mar 15 '12 #3
dwblas
626 Expert 512MB
Try EasyGUI for the input http://easygui.sourceforge.net/tutorial/index.html If you don't know how to put the input into a list then you want to check out one of the tutorials as this is basic and in every complete Python book/tutorial.
Mar 16 '12 #4
I had considered EasyGUI Multienter. I had searched four Python books and two tutorials but have not found an example of what I need.

Thanks for your response.

WDA

end
Mar 16 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jenny | last post by:
Hi, When I input my email address on this website, it provides a drop down box with two of my email addresses. The right bottom corner has a few 45 degree lines to indicate the user can change...
7
by: Hulo | last post by:
In a C program I am required to enter three numbers (integers) e.g. 256 7 5 on execution of the program. C:\> 256 7 5 There should be spaces between the three numbers and on pressing "enter",...
2
by: Asfar | last post by:
Hi, I have a VS2005 windows program written in c#. In this program I have an array list which stores many DataTable's. When I first run the pogram the arraylist is loaded with datatables. At...
1
by: lesperancer | last post by:
I've got a text box, width = 4.25", font = Sans Serif, font size = 8 for a 'memo' field 1) I enter the following data as four lines TAG : Glycol transfer Fluid : Glycol S.G. : ?? ...
6
evilmonkey
by: evilmonkey | last post by:
I am very new to programming as well as Java and this is my first post so please forgive me if this is not quite posted correctly. My Problem is that I have only been using scanner to get user input...
13
by: jerger | last post by:
my program takes users input (words/sentance) and translates it from english to hmong. I have to main variables, but cannot post my entire code. char In; CString in; basically the user cin...
0
by: tkatny | last post by:
How I Include External Input In Recored Macro. I Need The Macro To Pause Two (2) Times In Each Run And Repet Macro 20 Times. Thanks, Tad
32
by: jhc0033 | last post by:
Interesting article I came across on Slashdot: http://developers.slashdot.org/developers/08/07/10/213211.shtml They are using C at JPL to program Mars Lander and just about everything now! Not...
2
by: webster5u | last post by:
Hi, I have multiple input fields which is sharing similiar elements name so it will submit a array to other page. Whereas, i encounter a problem now, i want get number third element from the list...
0
by: munkee | last post by:
Basically I have had a look at the dreaded "Limit to list" property when wanting to allow my users to type in different department that is not within the department drop down list box and it seems a...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.