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):
|
def filter(self, *args):
|
||||||
text = self.filter_entry.get().lower()
|
text = self.filter_entry.get().lower()
|
||||||
for button in self.buttons:
|
for button in self.buttons:
|
||||||
if text == '':
|
if text == '' or text in button['text'].lower():
|
||||||
button['state'] = 'normal'
|
button['state'] = 'normal'
|
||||||
elif text not in button['text'].lower():
|
else:
|
||||||
button['state'] = 'disabled'
|
button['state'] = 'disabled'
|
||||||
|
|
||||||
def launch_filtered(self, *args):
|
def launch_filtered(self, *args):
|
||||||
|
|
Loading…
Reference in a new issue