Skip to content

Commit 4ca85d9

Browse files
committed
Cleanup
1 parent 0f2cbe3 commit 4ca85d9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

arcade/gui/widgets/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,12 @@ def add(self, child: W, **kwargs) -> W:
173173
# maybe the two systems should be merged?
174174
def _grap_active(self):
175175
"""Sets itself as the single active widget in the UIManager."""
176-
from arcade.gui.ui_manager import UIManager
177-
178176
ui_manager: UIManager | None = self.get_ui_manager()
179177
if ui_manager:
180178
ui_manager._set_active_widget(self)
181179

182180
def _release_active(self):
183181
"""Make this widget inactive in the UIManager."""
184-
from arcade.gui.ui_manager import UIManager
185-
186182
if not self._active:
187183
return
188184

@@ -740,7 +736,7 @@ def on_event(self, event: UIEvent) -> bool | None:
740736
modifiers=event.modifiers,
741737
),
742738
)
743-
return EVENT_HANDLED # TODO should we return the result from on_click?
739+
return EVENT_HANDLED # TODO should we return the result from on_click?
744740

745741
return EVENT_UNHANDLED
746742

arcade/gui/widgets/text.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ def __init__(
580580
self._apply_style()
581581

582582
def _on_active_changed(self):
583-
"""Handle the active state change of the input text field to care about loosing active state."""
583+
"""Handle the active state change of the input
584+
text field to care about loosing active state."""
584585
if not self._active:
585586
self.deactivate()
586587

0 commit comments

Comments
 (0)