allow editable scale field for manually setting the app scale value

This commit is contained in:
Huy Pham 2020-03-02 09:56:57 -08:00
parent a7fa0bf6d3
commit b0a3c85f0e
2 changed files with 22 additions and 1 deletions

View file

@ -81,7 +81,11 @@ class PreferencesDialog(Dialog):
)
scale.grid(row=0, column=0, sticky="ew")
entry = ttk.Entry(
scale_frame, textvariable=self.gui_scale, width=4, state="disabled"
scale_frame,
textvariable=self.gui_scale,
width=4,
validate="key",
validatecommand=(self.app.validation.app_scale, "%P"),
)
entry.grid(row=0, column=1)