Fix filter box not reverting button state on backspace.
This commit is contained in:
parent
4a61cb08e2
commit
8734dc0a96
1 changed files with 2 additions and 2 deletions
4
PGUI.pyw
4
PGUI.pyw
|
@ -60,9 +60,9 @@ class PGUILauncher(tkinter.ttk.Frame):
|
|||
def filter(self, *args):
|
||||
text = self.filter_entry.get().lower()
|
||||
for button in self.buttons:
|
||||
if text == '':
|
||||
if text == '' or text in button['text'].lower():
|
||||
button['state'] = 'normal'
|
||||
elif text not in button['text'].lower():
|
||||
else:
|
||||
button['state'] = 'disabled'
|
||||
|
||||
def launch_filtered(self, *args):
|
||||
|
|
Loading…
Reference in a new issue