I have to creat a graphical user interface using geo points, I have part of the code done but I'm stuck. I will include my code and the instructions The GUI should have a text box where the user can enter the name of a file that contains a list of points and descriptions. The GUI should have three more textboxes where the user can enter their own coordinates and description. The GUI should have a button the user can click. When the user clicks the button, the program should create a point representing the user’s location from coordinates and description in the textboxes, read the points from the file used in program 7, and finally display a message in another textbox (“Label”) that says something like: You are closest to which is located at
I have to creat a graphical user interface using geo points, I have part of the code done but I'm stuck. I will include my code and the instructions The GUI should have a text box where the user can enter the name of a file that contains a list of points and descriptions. The GUI should have three more textboxes where the user can enter their own coordinates and description. The GUI should have a button the user can click. When the user clicks the button, the program should create a point representing the user’s location from coordinates and description in the textboxes, read the points from the file used in program 7, and finally display a message in another textbox (“Label”) that says something like: You are closest to which is located at
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
I have to creat a graphical user interface using geo points, I have part of the code done but I'm stuck. I will include my code and the instructions
- The GUI should have a text box where the user can enter the name of a file that contains a list of points and descriptions.
- The GUI should have three more textboxes where the user can enter their own coordinates and description.
- The GUI should have a button the user can click.
- When the user clicks the button, the program should create a point representing the user’s location from coordinates and description in the textboxes, read the points from the file used in program 7, and finally display a message in another textbox (“Label”) that says something like:
You are closest to <description> which is located at <point’s x, y, z coordinates>

Transcribed Image Text:IDLE File Edit Format Run Options Window Help
D2L Ch12-GUI-P2-Part3 - PYT
a
L
A
<
ΘΟΔΟ
_init_.py
Canvas Demo.py
CanvasWidgetD
exceptionSubcla
→GUIdemos.py
Rectangle Oval Pol # Functions for opening a text file and saving a text file
def load():
> Avatars
csvDemo.py
dictionary.csv
+ enterAge.py
example.csv
= example.tsv
filesDemo.py
filesDemo2.py
GeoPoints.py
=guidemo.txt
hello.py
MyLibrary.py
MyProgram.py
numberGuessing
output.csv
PizzaOrderClass De
sandwich Maker50
YazzieTP8.py - /Users/tishenayazzie/Documents/YazzieTP8.py (3.7.9)
returnValuesDen
TextEditorGUIde
#GUI Initial Window
window = Tk()
→ coordinatesTurtle window.title("Simple Editor")
#
Yazzie TP7
# Programmer: Tishena Yazzie
# Email: tyazzie67@cnm.edu
# Purpose: demonstrates how to use GUI with the GeoPoints class
from tkinter import *
from tkinter.pointstxt import Points Text
Download
with open (Points.txt.get()) as file:
contents.delete('1.0', END)
contents.insert (INSERT, file.read())
def save():
with open (Points.txt.get(), 'w') as file:
file.write(contents.get('1.0', END))
# Multi-lined text entry box
contents = Scrolled Text()|
# Textbox for file entry
Points.txt = Entry()
# Buttons for opening and saving
btnOpen Button (text="Open", command=load)
btnSave Button (text="Save", command=save)
# Packing our widgets/objects
contents.pack (side=BOTTOM, expand=True, fill=BOTH)
Points.txt.pack(side=LEFT, expand=True, fill=X)
> CHINE 15:40 / 16:30
btnOpen.pack (side=LEFT)
btnOpen.pack (LEFT)
mainloop()
mycourses.cnm.edu
WidgetDemo.py
Reflect in ePortfolio
NOV
16
Activity Details
TXT
Ln: 24 Col: 25
tv
(`
Llicked the button")
I")
lick me!"
clicked
A
₁
b Success Confirmation of Question Submission | bartleby
TP8(1).py - /Users/tishenayazzie/Documents/YazzieTP8(1).py (3.7.9)*
ort *
U
Waunim
R
PYTHON
BURY
Ln: 4
Wed Nov 16 9:59 PM
+
Col: 35
00
TE
hot
45 PM
I
hot
51 PM
1
hot
20 PM
Points
53 PM
lot
43 PM
B
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

Recommended textbooks for you

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON

Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science

Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning

Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning

Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education

Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY