wx.CallLater - Inheritance

Hello,

wx.CallLater does not inherit from a super class, right?
So when I write my own class and want to use wx.CallLater therein,
it is enough to import wx or do I have to:
class MyClass(wx.CallLater):
ā€¦

Best regards!

It derives from object:

>>> import wx
>>> wx.CallLater.__bases__
(<class 'object'>,)
>>>

That depends on if you want MyClass to be a wx.CallLater, or if you want it to have or use a wx.CallLater. Hint: Iā€™m almost 100% certain that you do not want to derive MyClass from wx.CallLater.

1 Like