text: """
  This project lets you try out Tkinter/Ttk and practice it!
  
  Authors: David Mutchler, Valerie Galluzzi, Mark Hays, Amanda Stouder,
           their colleagues and Jonathan Collins.
  """  # Done: 1. PUT YOUR NAME IN THE ABOVE LINE.
  
  import tkinter
  from tkinter import ttk
  
  
  def main():
      """ Constructs a GUI with stuff on it. """
      # ------------------------------------------------------------------
      # Done: 2. After reading and understanding the m1e module,
      #   ** make a window that shows up. **
      # ------------------------------------------------------------------
      popbox = tkinter.Tk()
  
      # ------------------------------------------------------------------
      # Done: 3. After reading and understanding the m2e module,
      #   ** put a Frame on the window. **
      # ------------------------------------------------------------------
      frame1 = ttk.Frame(popbox, padding=20)
      frame1.grid()
  
      # ------------------------------------------------------------------
      # Done: 4. After reading and understanding the m2e module,
      #   ** put a Button on the Frame. **
      # ------------------------------------------------------------------
      hellobutton = ttk.Button(frame1,text='Print Hello')
      hellobutton.grid()
  
      # ------------------------------------------------------------------
      # Done: 5. After reading and understanding the m3e module,
      #   ** make your Button respond to a button-press **
      #   ** by printing   "Hello"  on the Console.     **
      # ------------------------------------------------------------------
      hellobutton['command'] = (lambda:
                                print('Hello'))
  
      # ------------------------------------------------------------------
      # Done: 6. After reading and understanding the m4e module,
      #   -- Put an Entry box on the Frame.
      #   -- Put a second Button on the Frame.
      #   -- Make this new Button, when pressed, print "Hello"
      #        on the Console if the current string in the Entry box
      #        is the string 'ok', but print "Goodbye" otherwise.
      # ------------------------------------------------------------------
      frentrybox = ttk.Entry(frame1)
      frentrybox.grid()
  
      newbutton = ttk.Button(frame1,text='Try me!')
      newbutton.grid()
      newbutton['command'] = (lambda:
                              interpret(frentrybox))
  
      # ------------------------------------------------------------------
      # Done: 7.
      #    -- Put a second Entry on the Frame.
      #    -- Put a third Button on the frame.
      #    -- Make this new Button respond to a button-press as follows:
      #
      #    Pressing this new Button causes the STRING that the user typed
      #    in the FIRST Entry box to be printed N times on the Console,
      #      where N is the INTEGER that the user typed
      #      in the SECOND Entry box.
      #
      #    If the user fails to enter an integer,
      #    that is a "user error" -- do NOT deal with that.
      #
      # ------------------------------------------------------------------
      ####################################################################
      # HINT:
      #   You will need to obtain the INTEGER from the STRING
      #   that the GET method returns.
      #   Use the   int   function to do so, as in this example:
      #      s = entry_box.get()
      #      n = int(s)
      ####################################################################
      intentry = ttk.Entry(frame1)
      intentry.grid()
  
      newnewbutton = ttk.Button(frame1,text='No, Try me!')
      newnewbutton.grid()
      newnewbutton['command'] = (lambda:
                                 print_n_times(frentrybox,intentry))
  
  
      # ------------------------------------------------------------------
      # Done: 8. As time permits, do other interesting GUI things!
      # ------------------------------------------------------------------
  
      popbox.mainloop()
  
  
  def interpret(vent):
      contents=vent.get()
      if contents == 'ok':
          print('Hello')
      else:
          print('Goodbye')
  
  
  def print_n_times(vent,numm):
      contents=vent.get()
      many=int(numm.get())
      for k in range(many):
          print(contents)
  
  
  
  # ----------------------------------------------------------------------
  # Calls  main  to start the ball rolling.
  # ----------------------------------------------------------------------
  main()
  