Hello!
I am trying to run the code provided in the texttable module documentation (http://jefke.free.fr/coding/python/texttable/) as shown in the code, but it returns a name error which tells that Texttable is not defined.
import texttable
table = Texttable()
table.set_cols_align(["l", "r", "c"])
table.set_cols_valign(["t", "m", "b"])
table.add_rows([ ["Name", "Age", "Nickname"], ["Mr\nXavier\nHuon", 32, "Xav'"], ["Mr\nBaptiste\nClement", 1, "Baby"] ])
print table.draw()
I don't know how to solve it, as I am importing the module. Has anyone experimented the same error and solved it?
Cheers!
Dani