Post Reply 
pyILPER 1.6.0 Beta 3 and LIFUTILS 1.7.7 Beta 1
01-03-2018, 12:53 AM
Post: #6
RE: pyILPER 1.6.0 Beta 3 and LIFUTILS 1.7.7 Beta 1
(01-01-2018 04:28 PM)Geir Isene Wrote:  Yeah, but why not just have the program simply write to the printer log file immediately after a print command is issued?

I have not tested it, but it should work.
Here for my file, your pyilper package and python version may have a different name, but you should get the idea.

Edit file : [home_folder]/miniconda3/pkgs/pyilper-1.6.0-py36hefe0d2b_0/lib/python3.6/site-packages/pyilper/pilwidgets.py
In class : class LogCheckboxWidget(QtWidgets.QCheckBox):
Modify method : logWrite
Before:
Code:
def logWrite(self,line):
   if self.log is None:
      return
   try:
      self.log.write(line)
   except OSError as e:
   ...

After:
Code:
def logWrite(self,line):
   if self.log is None:
      return
   try:
      self.log.write(line)
      self.log.flush()
   except OSError as e:
   ...

Sylvain
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread



User(s) browsing this thread: 1 Guest(s)