Comment on revision racab4a47ab01c6ef853f1a054f1914de4c7b5e61 in pychess

1 view
Skip to first unread message

pyc...@googlecode.com

unread,
Feb 15, 2014, 7:01:30 AM2/15/14
to pychess-c...@googlegroups.com
Comment by matt...@gmail.com:

Score: Positive

General Comment:
That fixed it :) BTW, instead of
conf.set("opening_check", conf.get("opening_check", 0))

all you need to do is
uistuff.keep(widgets["opening_check"], "opening_check", first_value=True)

And uistuff.keep() will set the default conf value to first_value if there
isn't a value in conf for the widget. The corresponding widget will get set
during the call too since it listens to conf changes for its value: (from
uistuff.keep():
conf.notify_add(key, lambda *args: setFromConf())

For more information:
http://code.google.com/p/pychess/source/detail?r=acab4a47ab01c6ef853f1a054f1914de4c7b5e61

pyc...@googlecode.com

unread,
Feb 15, 2014, 7:02:30 AM2/15/14
to pychess-c...@googlegroups.com

pyc...@googlecode.com

unread,
Feb 15, 2014, 7:18:32 AM2/15/14
to pychess-c...@googlegroups.com
Comment by gbtami:

General Comment:
Thx, good to know :)
Reply all
Reply to author
Forward
0 new messages