From 63a1337bedfd8839768b4dca298a2f56cc3356f0 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 22 Dec 2022 17:37:55 +0000 Subject: [PATCH] examples/click_counter: Minor type fixes. --- docs/examples/click_counter/load.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/examples/click_counter/load.py b/docs/examples/click_counter/load.py index b1ea6ac5..70c24f53 100644 --- a/docs/examples/click_counter/load.py +++ b/docs/examples/click_counter/load.py @@ -6,7 +6,6 @@ It adds a single button to the EDMC interface that displays the number of times import logging import tkinter as tk -import tkinter.ttk as ttk from typing import Optional import myNotebook as nb # noqa: N813 @@ -49,7 +48,7 @@ class ClickCounter: """ self.on_preferences_closed("", False) # Save our prefs - def setup_preferences(self, parent: ttk.Frame, cmdr: str, is_beta: bool) -> Optional[tk.Frame]: + def setup_preferences(self, parent: nb.Notebook, cmdr: str, is_beta: bool) -> Optional[tk.Frame]: """ setup_preferences is called by plugin_prefs below. @@ -128,7 +127,7 @@ def plugin_stop() -> None: return cc.on_unload() -def plugin_prefs(parent: ttk.Frame, cmdr: str, is_beta: bool) -> Optional[tk.Frame]: +def plugin_prefs(parent: nb.Notebook, cmdr: str, is_beta: bool) -> Optional[tk.Frame]: """ Handle preferences tab for the plugin.