From 5e93506d3e4a6ffe7dfcf6ceeb27ac28ffec6782 Mon Sep 17 00:00:00 2001 From: Aphelion <61633628+AphelionWasTaken@users.noreply.github.com> Date: Thu, 27 Feb 2025 06:35:59 -0600 Subject: [PATCH] Enter to search --- .github/workflows/build.yml | 6 +++--- PySN.py | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dbd3fc9..12cadb0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,10 +35,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: v2.0.11 - release_name: v2.0.11 + tag_name: v2.0.12 + release_name: v2.0.12 body: | - Update padding and columns in the textbox frame. Aligns text better and makes things look nicer. + Bind Enter key to search. draft: false prerelease: false - name: Upload Release Asset diff --git a/PySN.py b/PySN.py index 77f9b49..84f6ad9 100644 --- a/PySN.py +++ b/PySN.py @@ -269,7 +269,7 @@ def clear_items(self): #Main window and some button functionality. Vaguely named widgets are in order of how they appear on screen. class App(customtkinter.CTk): def __init__(self): - super().__init__() + super().__init__() self.geometry('760x640') self.title('PySN') self.resizable(0,0) @@ -277,6 +277,7 @@ def __init__(self): self.stop_down = False self.grid_rowconfigure((0, 1, 2), weight=1) self.grid_columnconfigure((0, 1, 2, 3, 4, 5, 6, 7), weight=1) + self.bind('', lambda event: self.button_search()) self.entry = customtkinter.CTkEntry(master=self, placeholder_text='Enter Serial', width = 125) self.entry.grid(row=0, column=0, padx=(4,2), pady=(6,0), sticky='ew')