On Wed, Dec 8, 2021 at 4:49 AM Mohsen Owzar <mohsen.ow...@gmail.com> wrote:
> *******************************************************************
> GPIOContrl.py
> *******************************************************************
> class GPIOControl:
> def my_print(self, args):
> if print_allowed == 1:
> print(args)
>
> def __init__(self):

Can't much help with your main question as I don't do Windows, but one
small side point: Instead of having a my_print that checks if printing
is allowed, you can conditionally replace the print function itself.

if not print_allowed:
    def print(*args, **kwargs): pass

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to