I am unable to set the size of the DirPickerCtrl. The 'Browse' button is getting placed behind the textbox. Please help me out with this if anybody has worked on it.


When you are calling wx.DirPickerCtrl( ) simply place the size that you want in the initialization like so: wx.DirPickerCtrl( self, -1, '', 'My Dir Picker', size = (a, b) ) where a and b are the desired dimensions.

You could also set the size after the fact with my_picker.SetSize( (a, b) ) where once again a and b are the desired dimensions.

Be a part of the DaniWeb community

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