From 09245589f54b5c29f9acf31a73814adda5ac4717 Mon Sep 17 00:00:00 2001 From: Griatch Date: Wed, 1 Feb 2017 23:23:06 +0100 Subject: [PATCH] Fix typos in the evform docstring. Resolves #1185. --- evennia/utils/evform.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/evennia/utils/evform.py b/evennia/utils/evform.py index cce15a8db..eae6ba02d 100644 --- a/evennia/utils/evform.py +++ b/evennia/utils/evform.py @@ -61,10 +61,10 @@ character's width. Use as follows: ```python - import evform + from evennia import EvForm, EvTable # create a new form from the template - form = evform.EvForm("path/to/testform.py") + form = EvForm("path/to/testform.py") (MudForm can also take a dictionary holding the required keys FORMCHAR, TABLECHAR and FORM) @@ -80,16 +80,16 @@ Use as follows: 8: 10, 9: 3}) # create the EvTables - tableA = evform.EvTable("HP","MV","MP", + tableA = EvTable("HP","MV","MP", table=[["**"], ["*****"], ["***"]], border="incols") - tableB = evform.EvTable("Skill", "Value", "Exp", + tableB = EvTable("Skill", "Value", "Exp", table=[["Shooting", "Herbalism", "Smithing"], [12,14,9],["550/1200", "990/1400", "205/900"]], border="incols") # add the tables to the proper ids in the form form.map(tables={"A": tableA, - "B": tableB} + "B": tableB}) # unicode is required since the example contains non-ascii characters print unicode(form)