Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split canvas.py into subpackage #3053

Merged
merged 7 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion android/src/toga_android/widgets/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
from java.io import ByteArrayOutputStream
from org.beeware.android import DrawHandlerView, IDrawHandler

from toga.widgets.canvas import Baseline, FillRule, arc_to_bezier, sweepangle
from toga.constants import Baseline, FillRule
from toga.widgets.canvas import arc_to_bezier, sweepangle

from ..colors import native_color
from .base import Widget
Expand Down
1 change: 1 addition & 0 deletions changes/3053.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ``Canvas`` widget has been split up from a single module into a subpackage.
2 changes: 1 addition & 1 deletion cocoa/src/toga_cocoa/widgets/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from travertino.size import at_least

from toga.colors import BLACK, TRANSPARENT, color
from toga.widgets.canvas import Baseline, FillRule
from toga.constants import Baseline, FillRule
from toga_cocoa.colors import native_color
from toga_cocoa.libs import (
CGFloat,
Expand Down
Loading
Loading