Hi
What i am trying to do is make a wx.FileDialog() show Import as the label on the button. I know you can change it to such things as open and save but i cant find a way to let me change it to a label saying import.

Any help would be greatly appreciated. :)

The widget wx.FileDialog() is most likely in the core DLL of wx, which is written and compiled C++. So the button label of the widget itself cannot be altered without going back to the C++ source code and recompiling. Not a task for the faint at heart.

You could however write a custom file dialog using wx.Dialog() yourself and use that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.