IOChannel
- class IOChannel(*args, **kwargs)
- Constructors:
IOChannel()
new_file(filename:str, mode:str) -> GLib.IOChannel
unix_new(fd:int) -> GLib.IOChannel
Methods
- class IOChannel
- add_watch(condition, callback, *user_data, **kwargs)
- Parameters:
condition
callback
user_data
kwargs
- next()
- read(max_count=-1)
Reads data from a
IOChannel
.Deprecated since version 2.2: Use
read_chars()
instead.- Parameters:
max_count
- readline(size_hint=-1)
- Parameters:
size_hint
- readlines(size_hint=-1)
- Parameters:
size_hint
- seek(offset, whence=0)
Sets the current position in the
IOChannel
, similar to the standard library function fseek().Deprecated since version 2.2: Use
seek_position()
instead.- Parameters:
offset – an offset, in bytes, which is added to the position specified by
type
whence
- write(buf, buflen=-1)
Writes data to a
IOChannel
.Deprecated since version 2.2: Use
write_chars()
instead.- Parameters:
buf – the buffer containing the data to write
buflen
- writelines(lines)
- Parameters:
lines