flacjacket / pywayland

Python bindings for the libwayland library
Apache License 2.0
79 stars 16 forks source link

feature request: helper to deserialize array to int array #28

Closed edrex closed 3 years ago

edrex commented 3 years ago

river-status-unstable-v1.zriver_output_status_v1.view_tags has type array, and contains an array of uints. It would be nice if the bindings had a helper for converting the bytes to int[], maybe?

testing here: https://github.com/edrex/dotfiles/blob/master/bin/river-cycle-populated-tags

edrex commented 3 years ago

nevermind, it's not too hard to do array.array('I', somebytes)