Hello all,
I was trying to customize a FindReplace Dialog in wxPython, just trying to change the caption of some controls. First of all, I do not even know if this is possible or not. Assuming this is possible, what I did is I created a class derived from FindReplaceDialog and after initialization was trying to list the child controls of the dialog by doing
for i in self.Children: print i
But each time, it shows nothing… more precisely, the output is WindowList: []
I do not understand what’s going on so I’d be grateful if any of you can point me to the right direction.
The wx and wxPython philosophy - both for speed and for a native
look and feel - is to where possible use the native controls, (with
a uniform interface across platforms). I would guess that in this
case wx.FindReplace in, on your current platform, implemented as a
native control so has no child windows, (as far as wx is
concerned). You can implement your own find & replace dialogue
from wx.Dialog that will allow you to change the background image,
etc.
Hope that helps.
Gadget/Steve
···
On 22/08/14 04:39, Pravesh Koirala
wrote:
Hello all,
I was trying to customize a FindReplace Dialog in wxPython,
just trying to change the caption of some controls. First of
all, I do not even know if this is possible or not. Assuming
this is possible, what I did is I created a class derived from
FindReplaceDialog and after initialization was trying to list
the child controls of the dialog by doing
for i in self.Children: print i
But each time, it shows nothing.. more precisely, the output is
WindowList:
I do not understand what's going on so I'd be grateful if any of
you can point me to the right direction.
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
I thought so. Thanks Steve
···
On Friday, August 22, 2014 2:02:26 PM UTC+5:45, Gadget Steve wrote:
On 22/08/14 04:39, Pravesh Koirala > wrote:
Hello all,
I was trying to customize a FindReplace Dialog in wxPython,
just trying to change the caption of some controls. First of
all, I do not even know if this is possible or not. Assuming
this is possible, what I did is I created a class derived from
FindReplaceDialog and after initialization was trying to list
the child controls of the dialog by doing
for i in self.Children: print i
But each time, it shows nothing.. more precisely, the output is
WindowList:
I do not understand what's going on so I'd be grateful if any of
you can point me to the right direction.
–
You received this message because you are subscribed to the Google
Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it,
send an email to wxpython-user...@googlegroups.com.
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
The wx and wxPython philosophy - both for speed and for a native
look and feel - is to where possible use the native controls, (with
a uniform interface across platforms). I would guess that in this
case wx.FindReplace in, on your current platform, implemented as a
native control so has no child windows, (as far as wx is
concerned). You can implement your own find & replace dialogue
from wx.Dialog that will allow you to change the background image,
etc.
Hope that helps.
Gadget/Steve