On Thu, Jun 2, 2011 at 5:31 PM, Tracubik <affdfsdfds...@b.com> wrote:
>    UNAME_CODE = ['uname']
>    LS_CODE = ['cd /home/myUserId/Images/SashaGray',
>               'ls *.jpg']
>
>    command_list = {
>    "uname" : UNAME_CODE,
>    "ls"    : LS_CODE
>    }
>
> do you like it?
> considering i'll have about 40+ buttons, do you suggest me to move some
> part of code outside in a different module?

I'd dispense with the indirection and simply build the dictionary as a
single literal. Beyond that, I won't advise, as you're using a
framework I'm not overly familiar with - others will be better placed
to give recommendations.

Chris Angelico
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to