💅 style(launcher): remove unnecessary import inside functions
This commit is contained in:
1 file changed
-2
@@ -969,7 +969,6 @@ class Launcher(Window):
|
|||||||
|
|
||||||
def _custom_widget_has_entry(self, widget):
|
def _custom_widget_has_entry(self, widget):
|
||||||
"""Check if a custom widget contains Entry widgets."""
|
"""Check if a custom widget contains Entry widgets."""
|
||||||
from fabric.widgets.entry import Entry
|
|
||||||
|
|
||||||
if isinstance(widget, Entry):
|
if isinstance(widget, Entry):
|
||||||
return True
|
return True
|
||||||
@@ -984,7 +983,6 @@ class Launcher(Window):
|
|||||||
|
|
||||||
def _find_focused_entry_in_widget(self, widget):
|
def _find_focused_entry_in_widget(self, widget):
|
||||||
"""Find the focused Entry widget within a custom widget."""
|
"""Find the focused Entry widget within a custom widget."""
|
||||||
from fabric.widgets.entry import Entry
|
|
||||||
|
|
||||||
if isinstance(widget, Entry):
|
if isinstance(widget, Entry):
|
||||||
# Try multiple ways to check if this Entry is focused
|
# Try multiple ways to check if this Entry is focused
|
||||||
|
|||||||
Reference in new issue
Block a user