shenghaoyang / pylcddc

Python LCDd client (LCDproc server client)
MIT License
9 stars 4 forks source link

Add "with" statement support to client #4

Closed easybe closed 3 years ago

easybe commented 3 years ago

This enable using the Client class like this:

with client.Client('localhost', 13666) as c:
    c.add_screen(main_scr)