Skip to content

Commit

Permalink
Final audit-related updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Nov 3, 2023
1 parent bcc4038 commit bb840ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/chart/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def startup(self):
self.set_data()

# Set up main window
self.main_window = toga.MainWindow(title=self.name)
self.main_window = toga.MainWindow()

self.chart = toga_chart.Chart(style=Pack(flex=1), on_draw=self.draw_chart)

Expand Down
2 changes: 1 addition & 1 deletion src/toga_chart/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _draw(self, figure: Figure):
# This is where the user adds the matplotlib draw instructions
# to construct the chart, so it needs to happen before the
# figure is rendered onto the canvas.
self.on_draw(self, figure=figure)
self.on_draw(figure=figure)

figure.draw(renderer)

Expand Down

0 comments on commit bb840ec

Please sign in to comment.