OpenCores
URL https://opencores.org/ocsvn/phr/phr/trunk

Subversion Repositories phr

[/] [phr/] [trunk/] [codigo/] [gui/] [windows/] [minimal python2.7.6/] [wx_file_dialog/] [file_dialog.py] - Blame information for rev 253

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 172 maximiq
import wx
2
import os
3
 
4
 
5
app = wx.App(False)
6
wildcard = "Python source (*.py)|*.py|" \
7
           "Compiled Python (*.pyc)|*.pyc|" \
8
           "All files (*.*)|*.*"
9
dialog = wx.FileDialog(None, "Titulo de la ventana", os.getcwd(), "", wildcard, wx.OPEN)
10
if dialog.ShowModal() == wx.ID_OK:
11
    print dialog.GetPath()
12
 
13
dialog.Destroy()

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.