asksaveasfilename in tkDialog Module trouble!!!

EdwardT edwardt at trillium.com
Wed Apr 18 14:41:46 EDT 2001


 Hi I use the fowllowing code to ask the user the output filename. but when
it got displayed, it display the full path also... the path is already
displayed on the window title.., and so this info is kinda extra and it
makes it hard to read ...
How can I remedy this problem???


       defaultfile = self.inputName
        #defaultfile = re.sub(currentDir+os.sep,"",defaultfile)

        self.outputName = asksaveasfilename(defaultextension=".arr",

            filetypes=["{Message Sequence Chart} {.arr}"],
initialfile="%s.arr"%defaultfile )

thanks





More information about the Python-list mailing list