From bb840ec160df8d45eb66b3e59b8f4923e16e9849 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Fri, 3 Nov 2023 12:52:34 +0800 Subject: [PATCH] Final audit-related updates. --- examples/chart/app.py | 2 +- src/toga_chart/chart.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/chart/app.py b/examples/chart/app.py index b6a698e..644ab04 100644 --- a/examples/chart/app.py +++ b/examples/chart/app.py @@ -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) diff --git a/src/toga_chart/chart.py b/src/toga_chart/chart.py index 5a89ca7..6adaeba 100644 --- a/src/toga_chart/chart.py +++ b/src/toga_chart/chart.py @@ -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)