[text] 123

Viewer

  1. from easygui import *
  2.  
  3. text = "Reserveer uw vergaderruimte. Maak een keuze:"
  4. title = "Vergaderruimtes reserveren"
  5.  
  6. menu1 = ["Reservering maken",
  7.          "Reservering verwijderen"]
  8.  
  9. rooms1 = ["Vergaderruimte 1",
  10.           "Vergaderruimte 2", 
  11.           "Vergaderruimte 3"]
  12.  
  13. days1 = ["Maandag",
  14.          "Dinsdag", 
  15.          "Woensdag",
  16.          "Donderdag",
  17.          "Vrijdag"]
  18.  
  19. times1 = ["09:00 - 10:00",
  20.           "10:00 - 11:00",
  21.           "11:00 - 12:00",
  22.           "12:00 - 13:00",
  23.           "13:00 - 14:00",
  24.           "14:00 - 15:00",
  25.           "15:00 - 16:00",
  26.           "16:00 - 17:00"]
  27.  
  28. times2 = ["09:00 - 10:00",
  29.           "10:00 - 11:00",
  30.           "11:00 - 12:00",
  31.           "12:00 - 13:00",
  32.           "13:00 - 14:00",
  33.           "14:00 - 15:00",
  34.           "15:00 - 16:00",
  35.           "16:00 - 17:00"]
  36.  
  37. times3 = ["09:00 - 10:00",
  38.           "10:00 - 11:00",
  39.           "11:00 - 12:00",
  40.           "12:00 - 13:00",
  41.           "13:00 - 14:00",
  42.           "14:00 - 15:00",
  43.           "15:00 - 16:00",
  44.           "16:00 - 17:00"]
  45.  
  46. message1 = "Uw keuze:"
  47. message2 = "Uw keuze is opgeslagen"
  48. ok_btn_txt = "OK"
  49.  
  50. finished = False
  51.  
  52. while not finished:
  53.  
  54.     output = choicebox(text, title, menu1)
  55.     
  56.     if output == menu1[0]:
  57.  
  58.         message = "Geselecteerd: " + str(output)
  59.         
  60.         output = choicebox(message, title, rooms1)
  61.         
  62.         if output == rooms1[0]:
  63.             
  64.             message = "Geselecteerd: " + str(output)
  65.             
  66.             output = choicebox(message, title, days1)
  67.             
  68.             if output == days1[0]:
  69.                 
  70.                 message = "Geselecteerd: " + str(output)
  71.                 
  72.                 output = choicebox(message, title, times1)
  73.                 
  74.                 if output == days1[1]:
  75.                     
  76.                     message = "Geselecteerd: " + str(output)
  77.                     
  78.                     output = choicebox(message, title, times1)
  79.                     
  80.                     if output == days1[2]:
  81.                         
  82.                         message = "Geselecteerd: " + str(output)
  83.                         
  84.                         output = choicebox(message, title, times1)
  85.                         
  86.                         if output == days1[3]:
  87.                             
  88.                             message = "Geselecteerd: " + str(output)
  89.                             
  90.                             output = choicebox(message, title, times1)
  91.                             
  92.                             if output == days1[4]:
  93.                                 
  94.                                 message = "Geselecteerd: " + str(output)
  95.                                 
  96.                                 output = choicebox(message, title, times1)
  97.                                 
  98.                                 output = ynbox(message, title)
  99.  
  100.                                 finished = True

Editor

You can edit this paste and save as new:


File Description
  • 123
  • Paste Code
  • 09 Oct-2022
  • 2.91 Kb
You can Share it: