Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

Simon

share|improve this question

1 Answer 1

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

 
discard

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.