From 2577c6980b2f47c9d1b3ff0dadaba050db9bfa2b Mon Sep 17 00:00:00 2001 From: nochkin Date: Sun, 24 Jan 2021 15:13:35 -0500 Subject: [PATCH] Set default locationName in GUI to avoid various issues when not set --- pico_project.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pico_project.py b/pico_project.py index 2a18190..e7185e9 100755 --- a/pico_project.py +++ b/pico_project.py @@ -603,6 +603,7 @@ def init_window(self, args): locationlbl = ttk.Label(mainFrame, text='Location :').grid(row=3, column=0, sticky=tk.E) self.locationName = tk.StringVar() + self.locationName.set(os.getcwd()) locationEntry = ttk.Entry(mainFrame, textvariable=self.locationName).grid(row=3, column=1, columnspan=3, sticky=tk.W+tk.E, padx=5) locationBrowse = ttk.Button(mainFrame, text='Browse', command=self.browse).grid(row=3, column=4)