Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def body(self,master):
self.master=master
self.preferences=Preferences()
ttk.Label(master,text="Mod Save Location:").grid(row=0)
self.locationIsUser=Tk.BooleanVar()
ttk.Radiobutton(master,
text="Documents",
variable=self.locationIsUser,
value=True).grid(row=0,column=1)
ttk.Radiobutton(master,
text="Game Data",
variable=self.locationIsUser,
value=False).grid(row=0,column=2)
self.locationIsUser.set(self.preferences.locationIsUser)
self.locationIsUser.trace("w",self.applyLocationIsUser)
ttk.Label(master,text="TTS Install location:").grid(row=1,columnspan=3)
self.ttsLocationEntry=ttk.Entry(master)
self.ttsLocationEntry.insert(0,self.preferences.TTSLocation)
self.ttsLocationEntry.grid(row=2,sticky=Tk.E+Tk.W,columnspan=2)