Tony Meyer wrote:
> [Tony Meyer]
>>> Browse shouldn't be too hard - you should be able to just call
>>> CreateFileDialog, right?
> 
> [Kenny Pitt]
>> Unfortunately, that's kind of the sticking point.
>> CreateFileDialog comes from win32ui, not win32gui, and
>> win32ui requires the MFC dlls.
> 
> Ah - I didn't realise that CreateFileDialog was in win32ui and not
> win32gui. Does this mean all common dialogs need win32ui, or can we
> just call them (CFileDialog) explicitly ourselves?  (With something
> like win32api.LoadLibrary).

There's a win32gui.GetOpenFileName() method that provides a lower-level
interface to the open dialog.  It requires you to manually construct the
Win32 API OPENFILENAME structure and pass it in as a string, and I haven't
had time to figure out how to do that yet.  If Mark is still listening to
this list, maybe he will chime in with a pointer to some more info on this.

-- 
Kenny Pitt

_______________________________________________
spambayes-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-dev

Reply via email to