Skip to content

Conversation

@adampbeardsley
Copy link
Collaborator

@Maxman0001 I'm creating a (draft) pull request from your branch to make it easier to discuss changes.

Copy link
Collaborator Author

@adampbeardsley adampbeardsley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good crack at it. I've made a bunch of suggestions - mostly taking out commented code. Look over and see if you agree with things. I'll need to get into the lab to try it out and see how it looks.

Comment on lines 92 to 94
# directory = user+"_"+location+"_"+date_y_m_d+"_"+trial+"_"+time.replace(":", ".")+"_"+tDay
# New format without location and with latitude and longitude
# I used f strings here for clarity
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# directory = user+"_"+location+"_"+date_y_m_d+"_"+trial+"_"+time.replace(":", ".")+"_"+tDay
# New format without location and with latitude and longitude
# I used f strings here for clarity

Glad you're using f strings, but don't need to include the explanation in the code.
And don't need to say that it's a new format - it will be in the changelog, and having the comment might confuse future devs

# It will only shows for active entry
active_hint_label = None # global tracker

def add_hint_label(entry_widget, hint_text, position="below"):
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's move this function up to the top where other functions are defined.

active_hint_label = None # global tracker

def add_hint_label(entry_widget, hint_text, position="below"):
# Adds a small gray hint label that appears only while typing in this entry."""
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Adds a small gray hint label that appears only while typing in this entry."""
""" Adds a small gray hint label that appears only while typing in this entry.
The goal is to have the hints under the entry or to the side so that the user knows what format to use."""

Comment on lines 593 to 617
# This function is to add hint labels to entry widgets when the user starts typing
# the goal is to have the hints under the entry or to the side so that the user knows what format to use

# def add_hint_label(entry_widget, hint_text, position="below"):
# #Adds a small gray hint label that appears when the user starts typing.
# hint_label = customtkinter.CTkLabel(master=app,
# text=hint_text,
# text_color="gray50",
# font=("Arial", 10))
# hint_label.place_forget() # Hidden until user types

# def on_type(event):
# content = entry_widget.get()
# if content.strip():
# x, y = entry_widget.winfo_x(), entry_widget.winfo_y()
# if position == "below":
# hint_label.place(x=x, y=y + entry_widget.winfo_height() + 2)
# else: # show beside
# hint_label.place(x=x + entry_widget.winfo_width() + 5, y=y)
# else:
# hint_label.place_forget()

# # Bind typing events
# entry_widget.bind("<KeyRelease>", on_type)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# This function is to add hint labels to entry widgets when the user starts typing
# the goal is to have the hints under the entry or to the side so that the user knows what format to use
# def add_hint_label(entry_widget, hint_text, position="below"):
# #Adds a small gray hint label that appears when the user starts typing.
# hint_label = customtkinter.CTkLabel(master=app,
# text=hint_text,
# text_color="gray50",
# font=("Arial", 10))
# hint_label.place_forget() # Hidden until user types
# def on_type(event):
# content = entry_widget.get()
# if content.strip():
# x, y = entry_widget.winfo_x(), entry_widget.winfo_y()
# if position == "below":
# hint_label.place(x=x, y=y + entry_widget.winfo_height() + 2)
# else: # show beside
# hint_label.place(x=x + entry_widget.winfo_width() + 5, y=y)
# else:
# hint_label.place_forget()
# # Bind typing events
# entry_widget.bind("<KeyRelease>", on_type)

active_hint_label.place_forget()

# Show this hint
content = entry_widget.get()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is content used for?


# Add hint labels for all entries with appropriate positions
# Position can be "below" or "beside" as needed
add_hint_label(freq_i_in, "Start frequency in MHz", position="below")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are some of these redundant with the labels that are already there?

@adampbeardsley
Copy link
Collaborator Author

I had a chance to look over and play with the current state, using the raspberry pi setup with the small monitor. Here are a few things I noticed:

  • The positioning of the hints could be tweaked. For example, sometimes they get in the way of the next box: image
    While this example doesn't completely cover the box, it reduces the space to click, and covers up the formatting hint, which hinders the flow of filling it out. As you go down in the form, the hints tend to drift further down. By the end they're quite out of place. image
  • The Time hint is all the way in the upper left. image
  • With the new layout, it's unclear what boxes "Use Default Parameters" affects. Previously it was everything above the actual toggle, but now all the boxes are above it.
  • I can't use the mouse's scroll wheel to scroll. I have to click and drag the marker within the scroll bar.

There are a few other issues I found, but when going back to the master branch I realized they existed there. So I'll open separate issues for them.

And a followup question: with the new formatting, is it now possible to include a font-size option to dynamically change? Personally I like the font size, but some users have complained they want bigger font. So it would be cool to have an option.

Maxman0001 and others added 4 commits November 30, 2025 22:30
Co-authored-by: Adam Beardsley <adam.p.beardsley@gmail.com>
Co-authored-by: Adam Beardsley <adam.p.beardsley@gmail.com>
Co-authored-by: Adam Beardsley <adam.p.beardsley@gmail.com>
@adampbeardsley
Copy link
Collaborator Author

A couple notes from testing out the latest changes:

  • When the window switches to two columns, personally I would prefer for the flow to go down the first column, then the second. But I'd like to hear what others have to say.
  • Could we set the default window size so when it opens on the small screen it's in the two-column format? Personally I find that a lot nicer to work with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants