I'm looking to create a window with python to accept a typed value. Is there any fairly easy way to do this?
Can I create an imput box with python in windows?
Collapse
X
-
I found an extremely simple pure win32 file open dialog and have been looking for a long time for something similar for data input, but to no avail. I sure would love to see one though.Originally posted by zensunniI'm looking to create a window with python to accept a typed value. Is there any fairly easy way to do this?
The code is slightly corrupt in that there is no space after OFN_ though one appears in the message editor.Code:import win32ui,win32con,sys fd = win32ui.CreateFileDialog(1,None,None,win32con.OFN_ALLOWMULTISELECT,'All Files|*.*') fd.SetOFNInitialDir('c:\\tmp') fd.SetOFNTitle('Select multiple files') if fd.DoModal() == win32con.IDCANCEL:sys.exit(1) print fd.GetPathNames()Comment
Comment