Name them whatever you want and organize your code in whatever way makes sense to you. What matters here is that the menu events are bound to the appropriate event handler, and that is all up to your code too.
···
On Monday, April 30, 2018 at 8:39:58 AM UTC-7, Rich wrote:
Two questions;
Is the OnOpen() method also used for creation of a new file?
Other than OnOpen() and OnSave() are there existing methods for
OnSaveAs(), OnImport(), and OnExport()?
If there is a library of common methods I’d like to use those rather than
Okay. I thought there might be standard dialogs other than the examples
for OnOpen(), OnClose(), and OnSave().
Regards,
Rich
···
On Mon, 30 Apr 2018, Robin Dunn wrote:
Name them whatever you want and organize your code in whatever way makes
sense to you. What matters here is that the menu events are bound to the
appropriate event handler, and that is all up to your code too.
They all use the same dialog class (that’s the wheel you don’t need to reinvent) and you just adjust the style flag and/or message as needed for the context where it will be used in your application.
I missed the style flags when I read the demo. Thanks for the pointer to
the web page.
Best regards,
Rich
···
On Mon, 30 Apr 2018, Robin Dunn wrote:
They all use the same dialog class (that's the wheel you don't need to
reinvent) and you just adjust the style flag and/or message as needed for
the context where it will be used in your application. wx.FileDialog — wxPython Phoenix 4.2.2 documentation