Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing small application where I have preferences and in preferences I have radio buttons... I managed to get signals out from them but the only problem I got is saving state of them. As this is preferences I need to have these buttons to stay selected when clicked and when program is closed and open again it need to be where it was.

Forgot to mention I'm writing it in python. Thanks for any help.


share|improve this question

You can get the radiobutton state by using their get_active() method. If you cant to keep their state between application restarts, you'll have to store their values in a configuration file. Have a look at the ConfigParser module for ini-style config storing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.