Skip to content

Commit

Permalink
expose 'DragContext' right under the root namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gottadiveintopython committed Sep 19, 2023
1 parent 65e3a8f commit e630d9f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/kivy_garden/draggable/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
__all__ = (
'DragContext',
'KXDraggableBehavior', 'KXDroppableBehavior', 'KXReorderableBehavior',
'save_widget_state', 'restore_widget_state',
'save_widget_location', 'restore_widget_location', 'ongoing_drags',
)

from ._impl import KXDraggableBehavior, KXDroppableBehavior, KXReorderableBehavior, ongoing_drags
from ._impl import KXDraggableBehavior, KXDroppableBehavior, KXReorderableBehavior, ongoing_drags, DragContext
from ._utils import save_widget_state, restore_widget_state
from ._utils import save_widget_location, restore_widget_location
4 changes: 0 additions & 4 deletions src/kivy_garden/draggable/_impl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
__all__ = (
'KXDraggableBehavior', 'KXDroppableBehavior', 'KXReorderableBehavior',
'ongoing_drags',
)
from typing import List, Tuple, Union
from inspect import isawaitable
from dataclasses import dataclass
Expand Down
6 changes: 0 additions & 6 deletions src/kivy_garden/draggable/_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
__all__ = (
'temp_transform',
'save_widget_state', 'restore_widget_state',
'save_widget_location', 'restore_widget_location',
)

from weakref import ref
from copy import deepcopy

Expand Down
1 change: 1 addition & 0 deletions tests/test_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

def test_flower():
from kivy_garden.draggable import (
DragContext,
KXDraggableBehavior, KXDroppableBehavior, KXReorderableBehavior,
restore_widget_state, save_widget_state,
restore_widget_location, save_widget_location, ongoing_drags,
Expand Down

0 comments on commit e630d9f

Please sign in to comment.