visibility

Open a Workbook with XLWINGS without making it visible

Open a Workbook with XLWINGS without making it visible Question: I am starting to use XLWings (not that I like Excel, at all, but it is something I HAVE TO do). The thing is that I cannot find the way to make Python open a Workbook without showing it. It seems the constructor for Workbooks …

Total answers: 5

Defining constants in python class, is self really needed?

Defining constants in python class, is self really needed? Question: I want to define a set of constants in a class like: class Foo(object): (NONEXISTING,VAGUE,CONFIRMED) = (0,1,2) def __init__(self): self.status = VAGUE However, I get NameError: global name ‘VAGUE’ is not defined Is there a way of defining these constants to be visiable inside the …

Total answers: 5