添加AI图片功能
This commit is contained in:
@@ -425,12 +425,24 @@ def create_test_type_frame(self):
|
||||
)
|
||||
self.local_dimming_btn.pack(fill=tk.X, padx=0, pady=1)
|
||||
|
||||
# 注册面板按钮(只保留日志)
|
||||
# AI 图片对话按钮
|
||||
self.ai_image_btn = ttk.Button(
|
||||
self.sidebar_frame,
|
||||
text="AI 图片",
|
||||
style="Sidebar.TButton",
|
||||
command=self.toggle_ai_image_panel,
|
||||
takefocus=False,
|
||||
)
|
||||
self.ai_image_btn.pack(fill=tk.X, padx=0, pady=1)
|
||||
|
||||
# 注册面板按钮
|
||||
if hasattr(self, "panels"):
|
||||
if "log" in self.panels:
|
||||
self.panels["log"]["button"] = self.log_btn
|
||||
if "local_dimming" in self.panels:
|
||||
self.panels["local_dimming"]["button"] = self.local_dimming_btn
|
||||
if "ai_image" in self.panels:
|
||||
self.panels["ai_image"]["button"] = self.ai_image_btn
|
||||
|
||||
|
||||
def update_config_info_display(self):
|
||||
|
||||
Reference in New Issue
Block a user