I m trying to open another .py file into .py file.i have written code for display list one it added in database but for that i need to go in menubar and click on list menu.

i want to open that list one recore added into database.
Any suggesion.

I'm not sure what your particular needs might be but the standard way of accessing another script is "import <filename>". For that to work, the accessed file either needs to be in the same directory as the running script or in the sys.path.
Another, less enthusiastically recommended, way is "execfile(<fully qualified filename>)"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.