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)#
Parameters:

max_count

readline(size_hint=-1)#
Parameters:

size_hint

readlines(size_hint=-1)#
Parameters:

size_hint

seek(offset, whence=0)#
Parameters:
  • offset

  • whence

write(buf, buflen=-1)#
Parameters:
  • buf

  • buflen

writelines(lines)#
Parameters:

lines