tjvr / kurt

Python library for reading/writing MIT's Scratch file format.
https://kurt.tjvr.org
GNU General Public License v3.0
86 stars 24 forks source link

Watcher.__init__(): doc: block to watch variable #31

Closed bennorth closed 9 years ago

bennorth commented 9 years ago

To construct a watcher for a variable, the block should be 'readVariable' not 'getVar:' (which is not recognised as a block).

(The final project file does need to specify 'getVar:'; the conversion is done in

scratch20.ZipWriter.save_watcher()
scratch14.Serializer.save_watcher()

on the way out and

scratch20.ZipReader.load_watcher()
scratch14.Serializer.load_watcher()

on the way in.)

tjvr commented 9 years ago

Great, thanks!