Hello,
Is it possible to exclude certain files in a wx.FileDialog, so that the user
won't see them and can't select them with the mouse in de File open window?
I was thinking of somehow extending the class FileDialog(Dialog)
in the wx module _windows.py to a subclass, but I'm not sure how to do that
(if feasible).
cheers 3 4601
On 18 Jan 2005 13:23:24 GMT, John Field <th**@is.invalid> wrote: Hello,
Is it possible to exclude certain files in a wx.FileDialog, so that the user won't see them and can't select them with the mouse in de File open window?
I was thinking of somehow extending the class FileDialog(Dialog) in the wx module _windows.py to a subclass, but I'm not sure how to do that (if feasible).
cheers
wx.FileDialog is only a wrapper for the api FileDialog (at least this
applies for windows) and therefore it is not possible to derive from it.
Really exclude, I think, is not possible.
You can put a mask
wx.FileDialog(...wildcard = "BMP files (*.bmp)|*.bmp|GIF files
(*.gif)|*.gif")
Otherwise you have to create your own FileDialog.
--
Franz Steinhaeusler
Hello Franz,
Franz Steinhaeusler <fr*****************@utanet.at> wrote in
news:q4********************************@4ax.com: Is it possible to exclude certain files in a wx.FileDialog, so that the user won't see them and can't select them with the mouse in de File open window?
I was thinking of somehow extending the class FileDialog(Dialog) in the wx module _windows.py to a subclass, but I'm not sure how to do that (if feasible).
wx.FileDialog is only a wrapper for the api FileDialog (at least this applies for windows) and therefore it is not possible to derive from it.
Really exclude, I think, is not possible.
You can put a mask wx.FileDialog(...wildcard = "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif")
In my experience this one shows only .bmp files, whereas
wildcard = "Image files | *.bmp;*.gif"
shows both extensions. Which i find strange, considering wxpython Help voor
wxFileDialog:
It must be noted that wildcard support in the native Motif file dialog is
quite limited: only one alternative is supported, and it is
displayed without the descriptive test; "BMP files (*.bmp)|*.bmp'' is
displayed as "*.bmp'', and both "BMP files (*.bmp)|*.bmp|GIF files
(*.gif)|*.gif'' and "Image files|*.bmp;*.gif'' are errors.
Unfortunately there is no expected extension for the input, most probably the
input files will have no extension at all, but it really is up to the user.
Otherwise you have to create your own FileDialog.
Yes, ehh, pff
Thanks for responding
cheers
On 19 Jan 2005 14:10:45 GMT, John Field <th**@is.invalid> wrote:
Hello John, Unfortunately there is no expected extension for the input, most probably the input files will have no extension at all, but it really is up to the user.
Otherwise you have to create your own FileDialog. Yes, ehh, pff
Thanks for responding
you're welcome.
sorry, that i don't have any other infos for you anymore.
I would ask in the wxpython-user mailing list or
wxwidget Ng.
You can also take a look to DrPython;
There is a File drFileDialog, which is a
full FileDialog based on a wx.ListCtrl.
--
Franz Steinhaeusler This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Anand Pillai |
last post by:
Hi
I am using wxPython version 2.4.0.1. When using wxFileDialog to save
files,
the filename returned is *always* the extension of the first entry in
the
wildcard.
That is if my wildcard...
|
by: Iain King |
last post by:
I can't get these to work, and I can't work out what I'm doing wrong.
I added the following lines to the GenericDirCtrl.py demo in the
wxython demos folder:
at the end TestPanel.__init__ I...
|
by: kath |
last post by:
Hello, sorry about the lengthy message.
I finding difficult to execute this program. The wx.Notebook i created
is coming on the splitted frame(self.p2). How do I that. I am started
to learn...
|
by: tom |
last post by:
I would like to use Epydoc (3.0beta1) to document my wxPython (2.6.10)
application. The problem is that I can't seem to instruct Epydoc to not
also generate partial documentation of wxPython,...
|
by: smugcool |
last post by:
hi,
i am creating a form with a text field and two command buttons in vb 6.0
I want when somebody will click on command1 button a path will be shown in the text field.
And for second command...
|
by: SMALLp |
last post by:
How can i select folder either with wx.FileDialog or with any other. I
managed to fine only how to open files but I need to select folder to
get files from all sub folders.....
Thanks in advance!
|
by: Janwillem |
last post by:
Is there a way to force the wx.FileDialog to show as default the
thumbnails vie in stead of list view?
thanks, janwillem
|
by: Iain King |
last post by:
Hi. I have a modal dialog whcih has a "Browse..." button which pops
up a file selector. This all works fine, but the first thing the user
has to do when they open the dialog is select a file, so...
|
by: dp_pearce |
last post by:
Hi All,
Apologies if this should be seriously obvious. But I am quite new to
Python and it is not quite so obvious yet.
I have a GUI which will eventually load and display database...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |