PDA

View Full Version : Open file dialog



Styler
06-05-2013, 07:49 PM
Hi,
How knows how to use FileRequester/FileRequester2 in python?
SDK/lwsdk11.5/html/globals/filereq.html
SDK/lwsdk11.5/html/globals/filereq2.html

I need to open fileBrowser for getting fullpath name of file.

Thanks

Styler
06-06-2013, 03:51 AM
Found it ).
lwsdk.LWFileReqFunc('hail', 'name', 'initPath' )

NanoGator
06-28-2014, 10:01 PM
Found it ).
lwsdk.LWFileReqFunc('hail', 'name', 'initPath' )


Thank you! I wanted to add a little bit here:

NewPath = lwsdk.LWFileReqFunc("Select a File to Save to...", ">*.txt", "E:\\Temp");

The ">" in the file mask says "THis is for saving", so it'll provide the "Do you wish to overwrite?" dialog. :)