Fixed a few typo's in the doc-strings and comments.
This commit is contained in:
parent
f5ed892bc1
commit
8d9d03b69a
2 changed files with 11 additions and 11 deletions
16
client.py
16
client.py
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/python
|
||||
"""This is an udp / binary client
|
||||
|
||||
Inspired by the PixelFlut beamer on eth0:winter 2016 and
|
||||
Inspired by the PixelFlut projector on eth0:winter 2016 and
|
||||
code from https://github.com/defnull/pixelflut/
|
||||
"""
|
||||
|
||||
|
|
@ -33,20 +33,20 @@ def RunClient():
|
|||
False, # show debugging output
|
||||
None, # ip of the server, None for autodetect
|
||||
None, # port of the server None for autodetect
|
||||
None, # Screen pixels wide, or Autodetect
|
||||
None # Screen pixels height, or Autodetect
|
||||
None, # Screen pixels wide, None for autodetect
|
||||
None # Screen pixels height, None for autodetect
|
||||
)
|
||||
message = NewMessage() #create a new message that buffers the output etc
|
||||
|
||||
# loop the effect untill we cancel by pressing ctrl+c / exit the program
|
||||
# loop the effect until we cancel by pressing ctrl+c / exit the program
|
||||
while True:
|
||||
# create a new message and send if everytime the buffer is full
|
||||
# create a new message and send it every time the buffer is full
|
||||
# the width/height are read from the client's config
|
||||
for packet in RandomFill(message, client.width, client.height):
|
||||
# send the message we just filled with random pixelfs
|
||||
# send the message we just filled with random pixels
|
||||
client.SendPacket(packet)
|
||||
|
||||
if __name__ == '__main__':
|
||||
# if this script is called from the commandline, and thus not imported
|
||||
# Start a client and start sending messages
|
||||
# if this script is called from the command line, and thus not imported
|
||||
# start a client and start sending messages
|
||||
RunClient()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue