wxPython file browser

Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Mar 2006
Posts: 10
Reputation: pythonguy is an unknown quantity at this point 
Solved Threads: 4
pythonguy pythonguy is offline Offline
Newbie Poster

wxPython file browser

 
0
  #1
Jun 21st, 2006
How to activate file typ filter in wxPython file browser
I am using wxFileDialog() call for file browsing,I want it to filter all unwanted files in display.
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 4,109
Reputation: vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice vegaseat is just really nice 
Solved Threads: 943
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
DaniWeb's Hypocrite

Re: wxPython file browser

 
0
  #2
Jun 22nd, 2006
Generally you tell the dialog which files you want to display ...
  1. dlg = wx.FileDialog(self, "Open a file")
  2. dlg.SetStyle(wx.OPEN)
  3. wildcard = "Python files (.py)|*.py|" \
  4. "PythonW files (.pyw)|*.pyw|" \
  5. "All files (*.*)|*.*"
  6. dlg.SetWildcard(wildcard)
Last edited by vegaseat; Jun 22nd, 2006 at 1:13 am.
May 'the Google' be with you!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Python
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC