Sorry for the noise, I guess I needed a coffee to see why it is not working. In the case it doesn't work the "pane" is SizedPanel created by the sized controls themselves and therefore can't match mine.
Werner
···
On 12/01/2013 10:59, Werner wrote:
I need extra style on the following, so I defined them like this:
mysized.py
import wx.lib.sized_controls as libSC
class SizedPanel(libSC.SizedPanel):
def __init__(self, *args, **kwargs):
super(SizedPanel, self).__init__(*args, **kwargs)
self.SetExtraStyle(wx.WS_EX_VALIDATE_RECURSIVELY)
import mysized as sc
if isinstance(pane, (sc.SizedFrame, sc.SizedPanel):
do whatever
The pane above is a mysized.SizedPanel but the isinstance is never returning True.
What am I doing wrong in mysized.py or on the isinstance call?