def create_module_bookmark_actions(parent, bookmarks):
 actions = []
 for (key, url, title) in bookmarks:
  create_act = True
  if (key == 'winpython'):
   if (not programs.is_module_installed(key)):
    create_act = False
  if create_act:
   act = create_bookmark_action(parent, url, title)
   actions.append(act)
 return actions

def create_module_bookmark_actions ( parent , bookmarks ) : actions = [ ] for ( key , url , title ) in bookmarks : create_act = True if ( key == 'winpython' ) : if ( not programs . is_module_installed ( key ) ) : create_act = False if create_act : act = create_bookmark_action ( parent , url , title ) actions . append ( act ) return actions
create bookmark actions depending on module installation: bookmarks = ( .