def create_python_script_action(parent, text, icon, package, module, args=[]):
 if is_text_string(icon):
  icon = get_icon(icon)
 if programs.python_script_exists(package, module):
  return create_action(parent, text, icon=icon, triggered=(lambda : programs.run_python_script(package, module, args)))

def create_python_script_action ( parent , text , icon , package , module , args = [ ] ) : if is_text_string ( icon ) : icon = get_icon ( icon ) if programs . python_script_exists ( package , module ) : return create_action ( parent , text , icon = icon , triggered = ( lambda : programs . run_python_script ( package , module , args ) ) )
create action to run a gui based python script .