Skip to content

Commit

Permalink
feat: re-layout old font button position
Browse files Browse the repository at this point in the history
  • Loading branch information
hank9999 committed Jan 25, 2024
1 parent 66ae4d4 commit b3ba382
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ def main():
)
write_font_h_button.place(x=193, y=100)

write_font_old_button = tk.Button(
window,
text='写入字库 (旧)',
command=lambda: write_font(
serial_port_combo.get(), window, progress, label2,
EEPROM_SIZE.index(eeprom_size_combo.get()), FIRMWARE_VERSION_LIST.index(firmware_combo.get()),
True, True
)
)
write_font_old_button.place(x=282, y=100)

write_font_conf_button = tk.Button(
window,
text='写入字库配置',
Expand All @@ -93,7 +104,7 @@ def main():
EEPROM_SIZE.index(eeprom_size_combo.get()), FIRMWARE_VERSION_LIST.index(firmware_combo.get())
)
)
write_font_conf_button.place(x=282, y=100)
write_font_conf_button.place(x=10, y=140)

write_tone_options_button = tk.Button(
window,
Expand All @@ -103,18 +114,7 @@ def main():
EEPROM_SIZE.index(eeprom_size_combo.get()), FIRMWARE_VERSION_LIST.index(firmware_combo.get())
)
)
write_tone_options_button.place(x=10, y=140)

write_font_old_button = tk.Button(
window,
text='写入字库 (旧)',
command=lambda: write_font(
serial_port_combo.get(), window, progress, label2,
EEPROM_SIZE.index(eeprom_size_combo.get()), FIRMWARE_VERSION_LIST.index(firmware_combo.get()),
True, True
)
)
write_font_old_button.place(x=105, y=140)
write_tone_options_button.place(x=105, y=140)

textbox = tk.Text(window, width=56, height=10)
textbox.place(x=10, y=185)
Expand Down

0 comments on commit b3ba382

Please sign in to comment.