PtButton data reading from code

I want some information about Button widget from code? Can any one help
me regarding this?

  1. How to get information of Button selected or Not from code?
  2. How to make selectable button mode to non-selectable mode from code
    and vice-versa?