bala wrote:
3)In that dialog, i will select a python file
4)By using that file, i have to create an object for that file.
5)i can do same thing by impoting...
6)But i don't want to do that....My requirement is By selecting the File, i have to create an Instance for that File
What wold an instance of that file do? If you want it to be a module, import it. If you want to run the code in it, look at execfile() and exec(). A file isn't a class, so you can't create and instance of it. YOu could create a class that wrapps that file in some way, but eithout knowing what you are trying to do, we can't suggest anything.
-Chris
ยทยทยท
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@noaa.gov