Update Uptated-Prototype/PiperTTS-GUI-Test.py
This commit is contained in:
@@ -139,11 +139,11 @@ def PiperTTS_GUI_TextFile_Open():
|
|||||||
with open(Root_Window.filename) as f:
|
with open(Root_Window.filename) as f:
|
||||||
try:
|
try:
|
||||||
Cursor_Position = Input_Box.index(INSERT)
|
Cursor_Position = Input_Box.index(INSERT)
|
||||||
else:
|
except:
|
||||||
print("Fucked up on the first part.")
|
print("Fucked up on the first part.")
|
||||||
try:
|
try:
|
||||||
Input_Box.insert("Cursor_Position", f.read())
|
Input_Box.insert("Cursor_Position", f.read())
|
||||||
else:
|
except:
|
||||||
print("Fucked up on the 2nd part.")
|
print("Fucked up on the 2nd part.")
|
||||||
else:
|
else:
|
||||||
print("Canceled file dialog.")
|
print("Canceled file dialog.")
|
||||||
|
|||||||
Reference in New Issue
Block a user