You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-### A "Get location of any country" is an application created in python with tkinter gui.
3
+
-### In this application, user can find the location of any country, either by using country name or country code.
4
+
-### The location will be shown in terms of Latitude and Longitude.
5
+
-### for the data, used the world_location.csv data, and read using pandas library.
6
+
7
+
****
8
+
9
+
# REQUIREMENTS :
10
+
-### python 3
11
+
-### tkinter module
12
+
-### from tkinter messagebox module
13
+
-### pandas
14
+
15
+
****
16
+
17
+
# How this Script works :
18
+
-### User just need to download the file and run the get_location_by_any_country.py on their local system.
19
+
-### Now on the main window of the application the user needs to select either the country code or the country name from the drop down OptionMenu.
20
+
-### After user has chosen the country code, when user clicks on the BY CODE button, he/she will be able to see the location in the message box in terms of Latitude and Longitude.
21
+
-### Abd after user has chosen the country name, when user clicks on the BY COUNTRY button, he/she will be able to see the location in the message box.
22
+
-### Also there is a reset button, clicking on which user can resets both the Option Menu to default character ot integer.
23
+
-### Also there is an exit button, clicking on which exit dialog box appears asking for the permission of the user for closing the window.
24
+
25
+
****
26
+
27
+
# SCREENSHOTS :
28
+
29
+
****
30
+
31
+
<palign="center">
32
+
<imgwidth = 700src="Images/1.jpg" /><br>
33
+
<imgwidth = 700src="Images/2.jpg" /><br>
34
+
<imgwidth = 700src="Images/3.jpg" /><br>
35
+
<imgwidth = 700src="Images/4.jpg" /><br>
36
+
<imgwidth = 700src="Images/5.jpg" /><br>
37
+
<imgwidth = 700src="Images/6.jpg" /><br>
38
+
<imgwidth = 700src="Images/7.jpg" /><br>
39
+
</p>
40
+
41
+
****
42
+
43
+
# Below is the video links of how appliation works :
mbox.showinfo("Location By Code", "Location of Country with code : "+str(code) +"\n\nLatitude : "+str(latitude[i]) +"\n\nLongitude : "+str(longitude[i]))
53
+
54
+
defget_location_country():
55
+
country1=country_var.get()
56
+
foriinrange(0, len(country)):
57
+
if(country[i] ==country1):
58
+
mbox.showinfo("Location By Country", "Location of Country with Name : "+str(country1) +"\n\nLatitude : "+str(latitude[i]) +"\n\nLongitude : "+str(longitude[i]))
59
+
60
+
61
+
# top label
62
+
start1=tk.Label(text="COUNTRY LOCATION", font=("Arial", 50), fg="magenta",underline=0) # same way bg
63
+
start1.place(x=150, y=10)
64
+
65
+
# label for country code ---------------------------------------------------------------------------------
66
+
codelbl=tk.Label(text="Get By Country Code : ", font=("Arial", 30), fg="brown") # same way bg
67
+
codelbl.place(x=200, y=460)
68
+
69
+
# creating the drop down menu button for selectng hour
70
+
code_var=tk.StringVar()
71
+
# as icon size are really small, we defined the following 7 sizes
0 commit comments