Newbie question, I am trying to use a entry to append the dbf part of a shapefile. I am using python 3.3. For some reason the file saves before the entry runs. I have been trying to fix this but so far have been unsuccessful. I figure there is something basic to python I have been missing.
from tkinter import filedialog
import tkinter as tk
""" Initalize the Application """
self.myentrybox = tk.Entry(window)
self.myentrybox.insert(0,"some default value")
""" Someone Pressed Enter """
aep = 'self.myentrybox.get()'
myapp = application(root)
r = shapefile.Reader('Mississippi')
w = shapefile.Writer()
w.fields = list(r.fields)
w.field (aep, 'C', '40')
for rec in r.records():