重构删除/移动主文件冗余函数
This commit is contained in:
@@ -605,4 +605,13 @@ def start_custom_template_test(self):
|
||||
self.test_thread.daemon = True
|
||||
self.test_thread.start()
|
||||
|
||||
|
||||
def update_custom_button_visibility(self):
|
||||
"""只在 SDR 测试时显示客户模版按钮"""
|
||||
if not hasattr(self, "custom_btn") or not hasattr(self, "test_type_var"):
|
||||
return
|
||||
if self.test_type_var.get() == "sdr_movie":
|
||||
if not self.custom_btn.winfo_manager():
|
||||
self.custom_btn.pack(side=tk.LEFT, padx=5)
|
||||
else:
|
||||
if self.custom_btn.winfo_manager():
|
||||
self.custom_btn.pack_forget()
|
||||
|
||||
Reference in New Issue
Block a user