- from easygui import *
- text = "Reserveer uw vergaderruimte. Maak een keuze:"
- title = "Vergaderruimtes reserveren"
- menu1 = ["Reservering maken",
- "Reservering verwijderen"]
- rooms1 = ["Vergaderruimte 1",
- "Vergaderruimte 2",
- "Vergaderruimte 3"]
- days1 = ["Maandag",
- "Dinsdag",
- "Woensdag",
- "Donderdag",
- "Vrijdag"]
- times1 = ["09:00 - 10:00",
- "10:00 - 11:00",
- "11:00 - 12:00",
- "12:00 - 13:00",
- "13:00 - 14:00",
- "14:00 - 15:00",
- "15:00 - 16:00",
- "16:00 - 17:00"]
- times2 = ["09:00 - 10:00",
- "10:00 - 11:00",
- "11:00 - 12:00",
- "12:00 - 13:00",
- "13:00 - 14:00",
- "14:00 - 15:00",
- "15:00 - 16:00",
- "16:00 - 17:00"]
- times3 = ["09:00 - 10:00",
- "10:00 - 11:00",
- "11:00 - 12:00",
- "12:00 - 13:00",
- "13:00 - 14:00",
- "14:00 - 15:00",
- "15:00 - 16:00",
- "16:00 - 17:00"]
- message1 = "Uw keuze:"
- message2 = "Uw keuze is opgeslagen"
- finished = False
- print("before the loop")
- while not finished:
- print("top of loop")
- output = choicebox(text, title, menu1)
- if output == menu1[0]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, rooms1)
- if output == rooms1[0]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, days1)
- if output == days1[0]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, times1)
- if output == days1[1]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, times1)
- if output == days1[2]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, times1)
- if output == days1[3]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, times1)
- if output == days1[4]:
- message = "Geselecteerd: " + str(output)
- output = choicebox(message, title, times1)
- print("ask finished?")
- finished = ynbox("Are you finished?")
- print("after the loop")
[text] 1
Viewer
Editor
You can edit this paste and save as new:
File Description
- 1
- Paste Code
- 13 Oct-2022
- 2.92 Kb
You can Share it:
Latest Code Pastes