help me reviewing and organizing my code =)
Chris Angelico
rosuav at gmail.com
Thu Jun 2 04:04:30 EDT 2011
On Thu, Jun 2, 2011 at 5:31 PM, Tracubik <affdfsdfdsfsd at 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
More information about the Python-list
mailing list