Update buttons.py

<type 'exceptions.AttributeError'> 'dict' object has no attribute 'is_mobile'"
Merge pull request #310 from pyner/patch-1

Update buttons.py