[Python-au] Windows and gui help

Andy Dent dent@oofile.com.au
Thu, 23 Jan 2003 17:57:05 +0800


At 9:58 +1100 23/01/2003, vector180 wrote:
>hi all
>Just started using ActivePython and i have some scripts working. Where
>is the visual like stuff for windows?

> i want to present the user with a filename/ directory like browser so
>they can pass a filename for my python script to act on.

Look under Help - PythonWin Reference then open topics
Python on Windows Extensions
  PythonWinHelp
    Modules
      win32ui
        CreateFileDialog

eg, in the interactive window you can try this:

import win32ui
pd = win32ui.CreateFileDialog(1)    # minimum params to specify saying is
Open dialog
pd.DoModal()
print pd.GetFileName()

-- 
Andy Dent BSc  MACS  AACM   http://www.oofile.com.au/
OOFILE - Database, Reports, Graphs, GUI for c++ on Mac, Unix & Windows
PP2MFC - PowerPlant->MFC portability