s is defined on line 12, and it cease to exist once you exit the "with" statement. Moreover, you need to fix the indentation of lines 12-14, because they currently are at the same indentation level as the __init__ function, instead of belonging to "def __init__". I'm not really familiar with sockets, but since you need an http request, perhaps the request library might be easier to start with.
A dynamically updating GUI screen from URL
A dynamically updating GUI screen from URL
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
A dynamically updating screen for PyQt GUI from URL | bescf | 0 | 3,282 |
Mar-25-2019, 06:58 AM Last Post: bescf |
Users browsing this thread: 1 Guest(s)