Skip to content

Commit

Permalink
Migrate to nb.EntryMenu as requested from EDMC.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgol committed Aug 27, 2024
1 parent 5cb688a commit 66ff67b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions load.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ttkHyperlinkLabel import HyperlinkLabel
from config import config

VERSION = '1.5.3'
VERSION = '1.5.4'

PREFSNAME_BACKWARD = "landingpad_backward"
PREFSNAME_MAX_WIDTH = "landingpad_max_width"
Expand Down Expand Up @@ -420,7 +420,7 @@ def plugin_prefs(parent, cmdr, is_beta):
nb.OptionMenu(frame, this.greenside, this.greenside.get(), *OPTIONS_GREENSIDE).grid(row=10, column=1, columnspan=2, padx=PADX, sticky=tk.W)

nb.Label(frame, text='max. Width').grid(row=11, padx=2*PADX, pady=(PADX, 0), sticky=tk.W)
nb.Entry(frame, textvariable=this.prefs_max_width).grid(row=11, column=1, columnspan=2, padx=PADX, pady=PADY, sticky=tk.W)
nb.EntryMenu(frame, textvariable=this.prefs_max_width).grid(row=11, column=1, columnspan=2, padx=PADX, pady=PADY, sticky=tk.W)

nb.Checkbutton(frame, text='Hide station canvas', variable=this.prefs_hide_canvas).grid(row=12, column=1, columnspan=2, padx=PADX, pady=PADY, sticky=tk.W)

Expand All @@ -431,23 +431,23 @@ def plugin_prefs(parent, cmdr, is_beta):

nb.Label(frame, text='Station').grid(row=20, padx=2*PADX, sticky=tk.W)
nb.Label(frame, text='Radius').grid(row=20, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_radius).grid(row=20, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_radius).grid(row=20, column=2, padx=PADX, pady=PADY, sticky=tk.EW)

nb.Label(frame, text='Center coordinates').grid(row=21, padx=2*PADX, sticky=tk.W)
nb.Label(frame, text='X').grid(row=21, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_center_x).grid(row=21, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_center_x).grid(row=21, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.Label(frame, text='Y').grid(row=22, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_center_y).grid(row=22, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_center_y).grid(row=22, column=2, padx=PADX, pady=PADY, sticky=tk.EW)

nb.Label(frame, text='Screen').grid(row=23, padx=2*PADX, sticky=tk.W)
nb.Label(frame, text='Width').grid(row=23, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_screen_w).grid(row=23, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_screen_w).grid(row=23, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.Label(frame, text='Height').grid(row=24, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_screen_h).grid(row=24, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_screen_h).grid(row=24, column=2, padx=PADX, pady=PADY, sticky=tk.EW)

nb.Label(frame, text='Drawing delay').grid(row=31, padx=2*PADX, sticky=tk.W)
nb.Label(frame, text='msec').grid(row=31, column=1, padx=PADX, sticky=tk.E)
nb.Entry(frame, textvariable=this.prefs_ms_delay).grid(row=31, column=2, padx=PADX, pady=PADY, sticky=tk.EW)
nb.EntryMenu(frame, textvariable=this.prefs_ms_delay).grid(row=31, column=2, padx=PADX, pady=PADY, sticky=tk.EW)

return frame

Expand Down

0 comments on commit 66ff67b

Please sign in to comment.