-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPrincipal.py
31 lines (26 loc) · 960 Bytes
/
Principal.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import tkinter as tk
from tkinter import ttk
import main
def Descargar():
win=tk.Toplevel()
win.geometry('100x100')
win.resizable(width=False,height=False)
win.configure(background='white')
boton2 = tk.Button(win,text="Download",bg="dodger blue",fg="white")
boton2.pack(padx=10,pady=20)
def Principal():
ventana = tk.Tk()
ventana.title("OSM Converter")
ventana.geometry('200x150')
ventana.resizable(width=False,height=False)
#ventana.iconbitmap('icono.ico')
ventana.configure(background='white')
etiqueta = tk.Label(ventana,text="Choose a country",bg='white')
etiqueta.pack(padx=20,pady=5)
combo = ttk.Combobox(ventana, state="readonly")
combo["values"]=["Republica Dominicana"]
combo.pack(padx=20,pady=5)
boton = tk.Button(ventana,text="Send",bg="dodger blue",fg="white",width="20",command= main.Getdata())
boton.pack(padx=20,pady=10)
ventana.mainloop()
Principal()