mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
PLUGINS.md: Be explicit about why plugin_prefs(...) -> Optional[tk.Frame]
This commit is contained in:
parent
92d9185b43
commit
b3b72a05a8
11
PLUGINS.md
11
PLUGINS.md
@ -228,10 +228,15 @@ a single set and two get methods, the new methods provide better type safety.
|
||||
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.
|
||||
numbers in a locale-independent way. NB: the old CamelCase versions of
|
||||
`number_from_string` and `string_from_number` do still exist, but arexi
|
||||
deprecated. They will continue to work, but will throw warnings.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
```python
|
||||
import tkinter as tk
|
||||
|
Loading…
x
Reference in New Issue
Block a user