Skip to content
Merged
1 change: 1 addition & 0 deletions changes/194.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The initialization of Chart has been updated to be compatible with Toga 0.5.0.
6 changes: 3 additions & 3 deletions examples/chart/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ def startup(self):
self.chart,
toga.Box(
children=[toga.Label("𝜇"), self.mu],
style=Pack(padding=(5, 10)),
style=Pack(margin=(5, 10)),
),
toga.Box(
children=[toga.Label("𝜎"), self.sigma],
style=Pack(padding=(5, 10)),
style=Pack(margin=(5, 10)),
),
toga.Button(
"Recreate data",
on_press=self.recreate_data,
style=Pack(padding=(10, 10, 20, 10)),
style=Pack(margin=(10, 10, 20, 10)),
),
],
style=Pack(direction=COLUMN),
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that toga 0.5.0 is out, is there a reason to remove the range you had before? "toga >= 0.5.0, < 0.6.0",

Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dev = [
"setuptools_scm == 8.2.0",
"tox == 4.24.2",
"toga-dummy >= 0.4.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove "toga-dummy >= 0.4.0", due to "toga-dummy >= 0.5.0, < 0.6.0",

"toga-dummy >= 0.5.0, < 0.6.0",
]
# Docs are always built on a specific Python version; see RTD and tox config files.
docs = [
Expand Down
1 change: 1 addition & 0 deletions src/toga_chart/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def __init__(

super().__init__(id=id, style=style)

def _create(self):
self._impl = self.canvas._impl

@Widget.app.setter
Expand Down