Das falsche Kraut geraucht


# Somebody must have smoked some really wicked weed when they
# defined the ListFontsWithInfo request:
# The server sends a reply for _each_ matching font…
# It then sends a special reply (name length == 0) to
# indicate that there are no more fonts in the reply.

# This means that we have to do some special parsing to see
# if we have got the end-of-reply reply. If we haven’t, we
# have to reinsert the request in the front of the
# display.sent_request queue to catch the next response.

# Bastards.

Source: Direct link to the source code
Software: The Python X Library
Programming language: python

1 Star2 Stars3 Stars4 Stars5 Stars (2 Bewertungen, Durchschnitt: 3,50 von 5)

Die Kommentare sind geschlossen.