wxPython: Change a buttons text in a wx.FileDialog
Posted
by
Sascha
on Stack Overflow
See other posts from Stack Overflow
or by Sascha
Published on 2010-12-25T10:17:08Z
Indexed on
2010/12/25
13:54 UTC
Read the original article
Hit count: 314
Hello
I have a wx.FileDialog (with the wx.FD_OPEN flag) & I would like to know if I can (& how) I could change the button in the bottom right of the FileDialog from "Open" to "Create" or "Delete", etc.
What I am doing is I have a button with the text "Delete Portfolio", when pressed it opens a FileDialog & allows the user to select a portfolio file(.db) to delete. So instead of the File Dialog's bottom right confirm button displaying "Open" I would like to be able to change the text to "Confirm" or "Delete" or whatever.
Is this possible, its a rather superficial thing to do, but if the button says open when the user wants to select a file to delete, it can be a little confusing even if the title of the dialog says "please select a file to delete"
© Stack Overflow or respective owner