pythonguis / pyqtconfig

A PyQt config manager. Keep Qt widgets in sync with an config dictionary and/or QSettings object.
Other
133 stars 33 forks source link

Support for QButtonGroup #4

Closed jrast closed 9 years ago

jrast commented 9 years ago

Can you add support for QButtonGroups?

The code could looke something like this:

def _get_QButtonGroup(self):
    return [(nr, btn.isChecked()) for nr, btn in enumerate(self.buttons())]

def _set_QButtonGroup(self, v):
    for idx, state in v:
        self.buttons()[idx].setChecked(state)

def _event_QButtonGroup(self):
    return self.buttonClicked
mfitzp commented 9 years ago

Sure, looks good. Can you open a pull request with this fix?

Let me know if you need help doing that.

mfitzp commented 9 years ago

Closing as fixed by PR 5, thanks again!