from ldtp import *
listsubmenus ('*-gedit', 'mnuFile') # all the submenus of File menu in ';' seperated string