auto-git:

[change] concept-maker_gui.py
This commit is contained in:
Victor Giers
2025-11-30 17:49:17 +01:00
parent 93086ed32e
commit fcebf043cc

View File

@@ -1799,11 +1799,23 @@ class App(TkinterDnD.Tk): # type: ignore
self.image_prompt_text.configure(state=tk.NORMAL) self.image_prompt_text.configure(state=tk.NORMAL)
self.image_prompt_text.delete("1.0", tk.END) self.image_prompt_text.delete("1.0", tk.END)
if text: if text:
self.image_prompt_text.insert("1.0", text.strip()) text_clean = text.strip()
self.image_prompt_text.insert("1.0", text_clean)
self._image_prompt_value = text_clean
else:
self._image_prompt_value = ""
self.image_prompt_text.configure(state=tk.DISABLED) self.image_prompt_text.configure(state=tk.DISABLED)
except Exception: except Exception:
pass pass
def _get_image_prompt_text(self) -> str:
if getattr(self, "_image_prompt_value", None) is not None:
return self._image_prompt_value
try:
return self.image_prompt_text.get("1.0", tk.END).strip()
except Exception:
return ""
def _set_image_prompt_loading(self, flag: bool, *, interim_text: Optional[str] = None): def _set_image_prompt_loading(self, flag: bool, *, interim_text: Optional[str] = None):
try: try:
if flag: if flag: