From abb83fc4d8cbfb3d976d8a9256229ba69312e5f4 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 12 Mar 2024 09:39:07 +0100 Subject: [PATCH] Improve doc string for EvForm with EvCel inserts --- evennia/utils/evform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/evennia/utils/evform.py b/evennia/utils/evform.py index c71a8f0670..fe31811669 100644 --- a/evennia/utils/evform.py +++ b/evennia/utils/evform.py @@ -203,7 +203,10 @@ class EvForm: also works, to stay compatible with the in-file names). While "form/FORM" is required, if FORMCHAR/TABLECHAR are not given, they will default to 'x' and 'c' respectively. - cells (dict): A dictionary mapping `{id: str}` + cells (dict): A dictionary mapping `{id: str}` or `{id: evennia.utils.evtable.EvCell}`. + By pre-creating the `EvCell` like `EvCell("text", align="c", valign="t")` you can + control the cell contents' alignment. Note that cell width/height will be enforced + by the form so will be overridden even if specified. tables (dict): A dictionary mapping `{id: EvTable}`. literals (dict): A dictionary mapping `{id: str}`. Will be replaced after width of form is calculated, but before cells/tables are mapped.