from tkinter import *
from tkinter.ttk import Combobox

window = Tk()

label = Label(text="Let's generate IIIF resources")
label.pack()

# Manifest or Collection (context and type)

v0=IntVar()
v0.set(1)
r1=Radiobutton(window, text="IIIF Manifest", variable=v0,value=1)
r2=Radiobutton(window, text="IIIF Collection", variable=v0,value=2)
r1.pack()
r2.pack()

# ID (URL) of the IIIF resource

idText=StringVar()
idText.set("What is the URL of the IIIF resource?")
idDir=Label(window, textvariable=idText, height=4)
idDir.pack(side="left")

directory1=StringVar(None)
id=Entry(window,textvariable=directory1,width=50)
id.insert(0, "https://")
id.pack(side="left")

# Summary of the IIIF resource

summaryText=StringVar()
summaryText.set("What is the summary?")
summaryDir=Label(window, textvariable=summaryText, height=4)
summaryDir.pack(side="left")

directory2=StringVar(None)
summary=Entry(window,textvariable=directory2,width=50)
summary.insert(0, "This is the summary")
summary.pack(side="left")

# Descriptive metadata 

## for x in range(5):
##    metadataEntry = Entry(window)
##    metadataEntry.grid(row=0, column=x, pady=20, padx=5)

# Combobox

## var = StringVar()
## var.set("IIIF Manifest")
## data=("IIIF Manifest", "IIIF Collection")
## cb=Combobox(window, values=data)
## cb.place(x=50, y=150)

window.mainloop()