title: why is the input when printed represented as an object using tkinter in python?
body: <p>I am writing a program that will take skill names as input from text entries and calculate the corresponding value of all of the skills entered. When I enter a skill in the program and then print the skill to the shell it appears as an object? Why does this happen and how can I fix it, do I need a <strong>repr</strong> or <strong>str</strong>? Why doesn't the delete method to clear the text entry work as well?</p>
  
  <pre><code>import tkinter as tk
  from tkinter import ttk
  
  #make the lists to store the skill names
  floorEle1Skills = []
  
  class startValue(tk.Tk):
  
      def __init__(self, *args, **kwargs):
  
          tk.Tk.__init__(self, *args, **kwargs)
  
          tk.Tk.wm_title(self, "Start Value Calculator")
          tk.Tk.minsize(self, width = 350, height = 300)
  
          container = tk.Frame(self)
          container.pack(side = 'top', fill = 'both', expand = True)
          container.grid_rowconfigure(0, weight = 1)
          container.grid_columnconfigure(0, weight = 1)
  
          self.frames = {}
  
          for f in (startPage, floorPage, pommelPage, ringsPage, vaultPage, pbarsPage, hbarPage):
  
              frame = f(container, self)
  
              self.frames[f] = frame
  
              frame.grid(row = 0, column = 0, sticky = "nsew")
  
          self.showFrame(startPage)
  
          #make the lists to store the skill names
          floorEle1Skills = []
  
      def showFrame(self, cont):
  
          frame = self.frames[cont]
          frame.tkraise()
  
      def floorEle1(skill):
          floorEle1Skills.append(skill)
          #clear the text entry
          #ele1Entry.delete(0, tk.END)
          #why doesnt this work???
          #why is it printed as an object??
          print(floorEle1Skills)
  
  
  class startPage(tk.Frame):
  
      def __init__(self, parent, controller):
          tk.Frame.__init__(self, parent)
          label = tk.Label(self, text = "Select Event")
          label.pack(pady = 10, padx = 10)
  
          floorButton = ttk.Button(self, text = "Floor", command = lambda : controller.showFrame(floorPage))
          floorButton.pack()
  
  
  class floorPage(tk.Frame):
  
      def __init__(self, parent, controller):
          tk.Frame.__init__(self, parent)
          label = tk.Label(self, text = "Floor")
          label.pack(pady = 10, padx = 10)
  
          #make the entries and labels
          ele1Label = tk.Label(self, text = "Element Group 1:")
          ele1Label.pack()
          skill1 = tk.StringVar()
          ele1Entry = tk.Entry(self, textvariable = skill1)
          ele1Entry.pack()
          ele1Button = ttk.Button(self, text = "Add", command = lambda : controller.floorEle1())
          ele1Button.pack()
  
          startButton = ttk.Button(self, text = "Back to Start", command = lambda : controller.showFrame(startPage))
          startButton.pack(side = 'bottom')
  </code></pre>