selectel / pyte

Simple VTXXX-compatible linux terminal emulator
http://pyte.readthedocs.org/
GNU Lesser General Public License v3.0
658 stars 102 forks source link

TypeError: __init__() takes exactly 1 argument (2 given) #58

Closed yonghuming closed 8 years ago

yonghuming commented 8 years ago

Traceback (most recent call last): File "D:\coding\pty\pty.py", line 19, in stream = pyte.Stream(screen) TypeError: init() takes exactly 1 argument (2 given) [Finished in 0.1s]

demiurg906 commented 8 years ago

Try that:

stream = pyte.Stream()
stream.attach(screen)
superbobry commented 8 years ago

@demiurg906 thanks!

@yonghuming we've changed the API quite a bit in the master version. If you're using the latest stable version, please take a look at 0.5.2 examples and docs.