diff --git a/src/utils/mudtable.py b/src/utils/mudtable.py index 4d052bca69..2c80500289 100644 --- a/src/utils/mudtable.py +++ b/src/utils/mudtable.py @@ -9,7 +9,7 @@ by prettytable but shares no code. Example usage: - table = Table("Heading1", "Heading2", table=[[1,2,3],[4,5,6],[7,8,9]], border="cells") + table = MudTable("Heading1", "Heading2", table=[[1,2,3],[4,5,6],[7,8,9]], border="cells") table.add_column("This is long data", "This is even longer data") table.add_row("This is a single row") print table @@ -32,7 +32,7 @@ As seen, the table will automatically expand with empty cells to make the table symmetric. Tables can be restricted to a given width. -If we created the above table with the width=50 keyword to Table() +If we created the above table with the width=50 keyword to MudTable() and then added the extra column and row, the result would be +-----------+------------+-----------+-----------+ @@ -73,13 +73,13 @@ def make_iter(obj): return not hasattr(obj, '__iter__') and [obj] or obj -# Cell class (see further down for the EvTable itself) +# Cell class (see further down for the MudTable itself) class Cell(object): """ - Holds a data cell for the table. A cell has a certain - width and height and contains one or more lines of - data. It can shrink and resize as needed. + Holds a single data cell for the table. A cell has a certain width + and height and contains one or more lines of data. It can shrink + and resize as needed. """ def __init__(self, data, **kwargs): """ @@ -360,9 +360,9 @@ class Cell(object): return "\n".join(self.formatted) -# Main Evtable class +# Main Mudtable class -class EvTable(object): +class MudTable(object): """ Table class.