title: Display the scoreboard in GUI interface in python
body: <p>I have a function that print the results of scoreboard game in terminal (see the picture below). I want to modify the function in a way to print the result on GUI interface using python -tkinter or other technique.
  I don't have any experince in GUI with python. Can some one help me?</p>
  <p>Here is the function that print the scoreboard result after the user enter the score in the terminal for the corresponding frame:</p>
  <pre><code> def print_scoreboard(self):
          print()
          print(&quot;Scoreboard&quot;)
  
          # print heading
          print(&quot;----------------------------------------------------------------------------&quot;)
          heading = self.fixed_width(&quot;Frames&quot;) + &quot;|&quot;
          for frame in self.frames:
              heading = heading + self.fixed_width(str(frame), 5) + &quot;|&quot;
          print(heading)
          print(&quot;----------------------------------------------------------------------------&quot;)
  
          # print results
          for player in self.players:
              results = ''
              for frame, res in player.results.items():
                  results = results + self.fixed_width(res['roll_1'] + &quot; &quot; + res['roll_2'] + &quot; &quot; + res['roll_3'], 5) + &quot;|&quot;
  
              print(self.fixed_width(player.name) + &quot;|&quot; + results)
  
              scores = ''
              for frame, s in player.scores.items():
                  scores = scores + self.fixed_width(str(s['frame_score']), 5) + &quot;|&quot;
  
              print(self.fixed_width(&quot;Frame Scores&quot;) + &quot;|&quot; + scores)
  
              totals = ''
              for frame, s in player.scores.items():
                  totals = totals + self.fixed_width(str(s['running_total']), 5) + &quot;|&quot;
  
              print(self.fixed_width(&quot;Running Total&quot;) + &quot;|&quot; + totals)
              print(&quot;----------------------------------------------------------------------------&quot;)
  
          print()
  </code></pre>
  <p>After i did some research, i got with the following example in python - tkinter. This example takes a variable value as input and display it in a gui window:</p>
  <pre><code>from tkinter import *
  import tkinter
  from tkinter import messagebox
  number = 0
  
  # object of tkinter
  # and background set for light grey
  master = Tk()
  master.configure(bg='light grey')
  master.title(&quot;Programme&quot;)
  master.geometry('500x650')
  
  # Variable Classes in tkinter
  score = StringVar();
  # Creating label for each information
  # name using widget Label
  label = Label(master, text=&quot;The total score is :&quot; + str(number) ,font=(&quot;Arial&quot;, 25) ,bg = &quot;light grey&quot;).grid(row=2, sticky=W)
  # Creating lebel for class variable
  # name using widget Entry
  Label(master, text=&quot;&quot;, textvariable= score ,bg = &quot;light grey&quot;).grid(row=2,column=1, sticky=W)
  StringVar(master=master)
  master.mainloop()
  </code></pre>
  <p>To make it clear, in the following image you find a producable example in terminal. I want to display the same content of this image (terminal) in GUI interface <a href="https://i.stack.imgur.com/OjoRW.png" rel="nofollow noreferrer">enter image description here</a></p>