Skip to content

Commit

Permalink
Fixes the properties management code of CTK.RadioGroupCfg().
Browse files Browse the repository at this point in the history
git-svn-id: svn://cherokee-project.com/CTK/trunk@6758 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Jun 10, 2011
1 parent e47d668 commit 67fddb1
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions CTK/Radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ def __init__ (self, key, options, _props={}):
for o in options:
val, desc = o

props = self.props.copy()
props['name'] = key
props['value'] = val
new_props = {}
new_props['name'] = key
new_props['value'] = val

self += RadioText (desc, props)
if 'checked' in self.props:
if self.props['checked'] == val:
new_props['checked'] = 1

self += RadioText (desc, new_props)


class RadioText (Box):
Expand Down

0 comments on commit 67fddb1

Please sign in to comment.