Add "brand_name" and "model_name" configuration attributes

Improve documentation

Fix some issue
This commit is contained in:
Ircama
2024-10-20 15:11:05 +02:00
parent f09eff6b98
commit 253c45bbc8
3 changed files with 48 additions and 8 deletions

6
ui.py
View File

@@ -2199,7 +2199,7 @@ class EpsonPrinterUI(tk.Tk):
result = detect_sequence(eeprom, epson_name)
c = 0
for i in result:
conf_data["epson_name[%s]" % c] = range(i, i + 64)
conf_data["brand_name[%s]" % c] = range(i, i + 64)
c += 1
if "Model" in stats["snmp_info"] and stats["snmp_info"]["Model"]:
@@ -2277,6 +2277,10 @@ class EpsonPrinterUI(tk.Tk):
except Exception as e:
self.handle_printer_error(e)
finally:
self.status_text.insert(
tk.END,
f"[INFO] Operation completed.\n"
)
self.update_idletasks()
self.config(cursor="")
self.update_idletasks()