def debug(self, data): """ Show data for debug If SO is Win, show data in Writer document else, show data in stdout """ if OS == WIN: app = LOApp(self.ctx, self.sm, self.desktop, self.toolkit) doc = app.getDoc(FILE_NAME_DEBUG) if not doc: doc = app.newDoc(WRITER) out = OutputDoc(doc) sys.stdout = out pprint (data) return
def debug(self, data): """ Show data for debug If SO is Win, show data in Writer document else, show data in stdout """ if OS == WIN: app = LOApp(self.ctx, self.sm, self.desktop, self.toolkit) doc = app.getDoc(FILE_NAME_DEBUG) if not doc: doc = app.newDoc(WRITER) out = OutputDoc(doc) sys.stdout = out pprint(data) return
def __init__(self, ctx, sm, desktop, toolkit): LOApp.__init__(self, ctx, sm, desktop, toolkit)