From 903ec3d5582a5a7bd93332f2b2b5797270b9c8e4 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 22 Mar 2021 14:06:57 +0000 Subject: [PATCH] Added mention of deprecated methods # Conflicts: # PLUGINS.md --- PLUGINS.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index 9c685055..9d5c2917 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -230,11 +230,9 @@ with core EDMC or other plugins.** Use `number_from_string()` from EDMC's `l10n.Locale` object to parse input numbers in a locale-independent way. -Note that in the following example the function signature defines that it -returns `Optional[tk.Frame]` only because we need to allow for `None` if -something goes wrong with the creation of the frame (the calling code checks -this). You absolutely need to return the `nb.Frame()` instance that you get -as in the code below. +Note that the old CamelCase versions of `number_from_string` and `string_from_number` do still exist, +but are deprecated. They will continue to work, but will throw warnings. + ```python import tkinter as tk from tkinter import ttk