Re: help me reviewing and organizing my code =)

2011-06-02 Thread Peter Otten
Tracubik wrote: > if you like, off course :) > > I'm making a port in python of a program made of bash commands + zenity > for the GUI. > so, i've to re-create a GUI in pyGTK and associate the right bash commands > to the buttons. > Instead of executing the bash script i simply print they in the

Re: help me reviewing and organizing my code =)

2011-06-02 Thread Chris Angelico
On Thu, Jun 2, 2011 at 5:31 PM, Tracubik 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+ butto

help me reviewing and organizing my code =)

2011-06-02 Thread Tracubik
if you like, off course :) I'm making a port in python of a program made of bash commands + zenity for the GUI. so, i've to re-create a GUI in pyGTK and associate the right bash commands to the buttons. Instead of executing the bash script i simply print they in the console. so, here's my code