Skip to content

Commit

Permalink
Merge pull request #3053 from HalfWhitt/canvas_subpackage
Browse files Browse the repository at this point in the history
Split canvas.py into subpackage
  • Loading branch information
freakboy3742 authored Dec 22, 2024
2 parents 36d6336 + 0e5c8a9 commit 66ff429
Show file tree
Hide file tree
Showing 11 changed files with 1,831 additions and 1,751 deletions.
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

0 comments on commit 66ff429

Please sign in to comment.