Upload 2 files
Browse files
Danbooru Prompt Selector/prompt_selector_auto_1201.exe
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d4e71f9a34dd33eed1752fc02bb523ad881b30988beeeb041ffe54da3829c55e
|
3 |
+
size 40695301
|
Danbooru Prompt Selector/prompt_selector_auto_1201.py
CHANGED
@@ -507,29 +507,29 @@ def exit_program():
|
|
507 |
|
508 |
def save_settings():
|
509 |
global NAI_ID
|
510 |
-
with open('app_settings.txt', 'w', encoding='utf-8') as f:
|
511 |
if(len(entry_file_path.get()) > 4):
|
512 |
f.write(entry_file_path.get() + '\n')
|
513 |
else: f.write(" "+'\n')
|
514 |
-
if(len(entry_keyword.get()) > 3):
|
515 |
f.write(entry_keyword.get() + '\n')
|
516 |
else: f.write(" "+'\n')
|
517 |
-
if(len(entry_deep_search.get()) > 3):
|
518 |
f.write(entry_deep_search.get() + '\n')
|
519 |
else: f.write(" "+'\n')
|
520 |
-
if(len(entry_fixed_prompt.get()) > 4):
|
521 |
f.write(entry_fixed_prompt.get() + '\n')
|
522 |
else: f.write(" "+'\n')
|
523 |
-
if(len(entry_fixed_prompt_after.get()) > 4):
|
524 |
f.write(entry_fixed_prompt_after.get() + '\n')
|
525 |
else: f.write(" "+'\n')
|
526 |
-
if(len(entry_auto_hide.get()) > 3):
|
527 |
f.write(entry_auto_hide.get() + '\n')
|
528 |
else: f.write(" "+'\n')
|
529 |
-
if(len(negative_text.get("1.0", tk.END)) > 4):
|
530 |
-
f.write(negative_text.get("1.0", tk.END)
|
531 |
else: f.write(" "+'\n')
|
532 |
-
if(NAI_ID): f.write(NAI_ID + '\n' ) #ํญ์ ๋ง์ง๋ง์ ์ค๋๋ก ๊ธฐ์ต
|
533 |
|
534 |
def load_settings():
|
535 |
NAI_ID = ""
|
|
|
507 |
|
508 |
def save_settings():
|
509 |
global NAI_ID
|
510 |
+
with open('app_settings.txt', 'w', encoding='utf-8') as f: #1
|
511 |
if(len(entry_file_path.get()) > 4):
|
512 |
f.write(entry_file_path.get() + '\n')
|
513 |
else: f.write(" "+'\n')
|
514 |
+
if(len(entry_keyword.get()) > 3): #2
|
515 |
f.write(entry_keyword.get() + '\n')
|
516 |
else: f.write(" "+'\n')
|
517 |
+
if(len(entry_deep_search.get()) > 3): #3
|
518 |
f.write(entry_deep_search.get() + '\n')
|
519 |
else: f.write(" "+'\n')
|
520 |
+
if(len(entry_fixed_prompt.get()) > 4): #4
|
521 |
f.write(entry_fixed_prompt.get() + '\n')
|
522 |
else: f.write(" "+'\n')
|
523 |
+
if(len(entry_fixed_prompt_after.get()) > 4): #5
|
524 |
f.write(entry_fixed_prompt_after.get() + '\n')
|
525 |
else: f.write(" "+'\n')
|
526 |
+
if(len(entry_auto_hide.get()) > 3): #6
|
527 |
f.write(entry_auto_hide.get() + '\n')
|
528 |
else: f.write(" "+'\n')
|
529 |
+
if(len(negative_text.get("1.0", tk.END)) > 4): #7
|
530 |
+
f.write(negative_text.get("1.0", tk.END))
|
531 |
else: f.write(" "+'\n')
|
532 |
+
if(NAI_ID): f.write(NAI_ID + '\n' ) #ํญ์ ๋ง์ง๋ง์ ์ค๋๋ก ๊ธฐ์ต #8
|
533 |
|
534 |
def load_settings():
|
535 |
NAI_ID = ""
|