How to use the tts.preferences.Preferences function in TTS

To help you get started, we’ve selected a few TTS examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cwoac / TTS-Manager / tts / preferences.py View on Github external
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)