Skip to content

Commit

Permalink
deleted predefined fields, smoother user experience
Browse files Browse the repository at this point in the history
  • Loading branch information
edouardbruelhart committed Apr 30, 2024
1 parent 9cfe909 commit 32b4c8d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ms_sample_list_creator/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,13 @@ def __init__(self, parent: tk.Tk, *args: Any, **kwargs: Any):
frame_entries_up.pack(fill="x", pady=5)

entry_username = tk.Entry(frame_entries_up, textvariable=self.username)
self.username.set("edouard.bruelhart@unifr.ch")
entry_username.pack(side="left", anchor="center")
entry_password = tk.Entry(frame_entries_up, textvariable=self.password, show="*")
self.password.set("861510Eb.98")
entry_password.pack(side="right", anchor="center")

# set the cursor to the prefix entry
entry_username.focus_set()

frame_labels_om = tk.Frame(self)
frame_labels_om.pack(fill="x", pady=(5, 0))

Expand All @@ -78,11 +79,9 @@ def __init__(self, parent: tk.Tk, *args: Any, **kwargs: Any):
frame_entries_om.pack(fill="x", pady=(5, 0))

entry_operator = tk.Entry(frame_entries_om, textvariable=self.operator)
self.operator.set("EB")
entry_operator.pack(side="left", anchor="center")

entry_ms = tk.Entry(frame_entries_om, textvariable=self.ms_id)
self.ms_id.set("ms_000001")
entry_ms.pack(side="right", anchor="center")

frame_label_rack = tk.Frame(self)
Expand Down Expand Up @@ -138,11 +137,9 @@ def __init__(self, parent: tk.Tk, *args: Any, **kwargs: Any):
frame_entries_np.pack(fill="x", pady=(5, 0))

entry_blk_name = tk.Entry(frame_entries_np, textvariable=self.blk_name)
self.blk_name.set("mapp")
entry_blk_name.pack(side="left", anchor="center")

entry_blk_pos = tk.Entry(frame_entries_np, textvariable=self.blk_pos)
self.blk_pos.set("B:F1")
entry_blk_pos.pack(side="right", anchor="center")

frame_labels_pv = tk.Frame(self)
Expand Down Expand Up @@ -791,8 +788,12 @@ def __init__(self, root: tk.Toplevel):
label_prefix.pack()

entry_prefix = tk.Entry(self, textvariable=self.prefix)
self.prefix.set("G:")
entry_prefix.pack()

# set the cursor to the prefix entry
entry_prefix.focus_set()

# Submit button
button_submit = tk.Button(self, text="Submit", command=self.store_prefix)
button_submit.pack()
Expand Down

0 comments on commit 32b4c8d

Please sign in to comment.