Hi,
I’ve been looking around for a file opener and a file closer dialog. wxPython appears perfect for the job. The demo FileDialog.py includes both. However, the save/open dialogs launch from another screen. What I’d like is for when in my code I do something like:
import save, open
def main():
filename = save.main()
#later…
filename = open.main()
two modules, save and open, will run their corresponding dialogs.
This is my first wxPython project, but I took an attempt at making open and save functions (attachments). They run, but they still launch from the same table. Can anyone help? Thank you very much.
Ian
open.py (1.42 KB)
save.py (1.3 KB)
I must be missing something here. Can't you just use one panel with 2
buttons? One button opens a file and the other button save? Or better yet,
create a menubar with Open and Save options and have them launch the
wx.FileDialog methods with the appropriate flags?
Mike
···
-----Original Message-----
From: Ian Mallett [mailto:geometrian@gmail.com]
Sent: Wednesday, August 01, 2007 10:48 PM
To: wxpython-users@lists.wxwidgets.org
Subject: Open and Save Dialogs
Hi,
I've been looking around for a file opener and a file closer
dialog. wxPython appears perfect for the job. The demo
FileDialog.py includes both. However, the save/open dialogs
launch from another screen. What I'd like is for when in my
code I do something like:
import save, open
def main():
filename = save.main()
#later...
filename = open.main()
two modules, save and open, will run their corresponding dialogs.
This is my first wxPython project, but I took an attempt at
making open and save functions (attachments). They run, but
they still launch from the same table. Can anyone help?
Thank you very much.
Ian