Skip to content

Commit

Permalink
Merge pull request raspberrypi#10 from nochkin/locationname-fix
Browse files Browse the repository at this point in the history
Set default locationName in GUI to avoid various issues when not set
  • Loading branch information
JamesH65 authored Jan 25, 2021
2 parents 2409f23 + 2577c69 commit 46fe0f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pico_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 46fe0f3

Please sign in to comment.