添加AI图像生成接口、修改相关界面

This commit is contained in:
xinzhu.yin
2026-04-29 15:25:58 +08:00
parent e243fc4e94
commit 377bba2a0b
4 changed files with 443 additions and 134 deletions

View File

@@ -877,6 +877,14 @@ class PQAutomationApp:
def main():
try:
# 全局日志:默认 INFO 输出到 stderr便于排查 AI 接口等关键事件
import logging as _logging
if not _logging.getLogger().handlers:
_logging.basicConfig(
level=_logging.INFO,
format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
datefmt="%H:%M:%S",
)
# root = tk.Tk()
root = ttk.Window(themename="yeti")
app = PQAutomationApp(root)