title: Adding simple gui to my simple python code
body: <p>I've written this python code and I'm trying to add a simple GUI. I would like to  use the GUI to get inputs from the user instead of hard-coding the inputs. </p>
  
  <pre><code> import math
  
  def main():
      ciphertext = 'litrutisfgsofnaeeieoitdt'
      myKey = 4
  
      plaintext = decryption(myKey, ciphertext)
      print(plaintext)
  
  def decryption(key, message):
  
      colNum = math.ceil(len(message) / key)
      rowNum = key
      shadeNum = (colNum * rowNum) - len(message)
      plaintext = [''] * colNum
  
      col = 0
      row = 0
  
      for symbol in message:
          plaintext[col] += symbol
          col += 1 
  
          if (col == colNum) or (col == colNum - 1 and row &gt;= rowNum - shadeNum):
              col = 0
              row += 1
  
      return ''.join(plaintext)
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>I want get cipher-text and key from user input and add a button which will do the decryption part and show result in a label. I'm trying to add GUI with Tkinter but to be honest i have no idea how to link it. Any ideas how should I do?</p>