Night | Snow

wxPython File Save Dialog

Posted on: December 4th, 2009

Tags: ,

This is an example on how to use the wxFileDialog. It allows the user to save or open a file. Setting up a basic dialog is pretty simple.

from wxPython.wx import *

app = wx.PySimpleApp()
saveDlg= wxFileDialog ( None, style = wxOPEN )

if saveDlg.ShowModal() == wxID_OK:
    print 'Selected:', saveDlg.GetPath()

saveDlg.Destroy()

News

Martin Fischer said:

Client and partner of simra.ch

Wir können Simon Schärer als kompetenter und zuverlässiger Programmierer höchst weiterempfehlen. Er ist nicht nur ein guter Programmierer, sondern auch ein ausgezeichneter Designer.
Danke Developer’s Island

Follow us on Twitter

favorite

I get asked a lot - which SDK should we use for web programming? I recommend Netbeans

my toolbar

Simra GameMP3 playersubscribe to RSSMy delicious bookmarksFacebookTwitterE-mail

No Responses to “wxPython File Save Dialog”

RSS Feed Icon  Subscribe to comments follow-up

Trackbacks/Pingbacks

Leave a reply

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Latest Tweet

loading...