Hi,
(CCing Python Tutor again). I meant something like below. I am sending this
from my phone, which is cumbersome to use an understatement, so the indentation
is lost. But I hope you get the idea. You need to inherit from Frame.
Btw, this is useful if you would like to create an interactive gr
Phil wrote:
> On 26/02/17 18:42, Alan Gauld via Tutor wrote:
>> On 26/02/17 06:44, Phil wrote:
>>
>>> s.connect((host, 1210))
>>> data = "GET_LIST"
>>
>> This is a string, you need to use bytes.
>>
>> data = bytes("GET_LIST",'utf8')
>>
>
> Thank you Peter and Alan for your response.
>
> Converti
On 26/02/17 18:42, Alan Gauld via Tutor wrote:
On 26/02/17 06:44, Phil wrote:
s.connect((host, 1210))
data = "GET_LIST"
This is a string, you need to use bytes.
data = bytes("GET_LIST",'utf8')
Thank you Peter and Alan for your response.
Converting "data" to bytes worked, of course. Now I
On 26/02/17 06:44, Phil wrote:
> s.connect((host, 1210))
> data = "GET_LIST"
This is a string, you need to use bytes.
data = bytes("GET_LIST",'utf8')
> s.sendall(data)
> #s.sendto(data, (host, 1210))
> s.shutdown(1)
> Traceback (most recent call last):
>File "/home/phil/Python/predict_clie
Phil wrote:
> Thank you for reading this.
>
> As an exercise, and for no other purpose, I'm trying to convert some C++
> code that I put together 17 years ago. I'm very rusty and hours of
> Internet searches have made me more confused that I was to start with.
>
> The following works under Pytho