Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Saving text file with a click: valueerror i/o operation on closed file
Post: RE: Saving text file with a click: valueerror i/o ...

Phew that worked. Thanks. You made my day. I placed the contextmanager outside the class and it worked like a charm. Next I'm incorporating the FileTee. Though I wonder why it works if it's out of ...
vizier87 General Coding Help 5 4,419 Nov-16-2020, 12:55 AM
    Thread: Saving text file with a click: valueerror i/o operation on closed file
Post: RE: Saving text file with a click: valueerror i/o ...

(Nov-12-2020, 04:46 PM)Gribouillis Wrote: You can redirect sys.stdout by defining your own context. The following code prints 'Hello there!' in file 'foo.txt' and then 'Done' to standard output. Don...
vizier87 General Coding Help 5 4,419 Nov-13-2020, 08:09 AM
    Thread: Saving text file with a click: valueerror i/o operation on closed file
Post: Saving text file with a click: valueerror i/o oper...

Hi guys, first post here. I hope I'm in the right place, since it seems to be more of a Python issue than a PyQt issue. I've been trying to import the text generated from the console into a text file...
vizier87 General Coding Help 5 4,419 Nov-12-2020, 08:44 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020