def Create(self, parent, id, pos, size, style, name):
wxPanel.Create(self, parent, id, pos, size, style, name)
self.SetBackgroundColour("BLUE")
def Create(self, parent, id, pos, size, style, name):
wxPanel.Create(self, parent, id, pos, size, style, name)
self.SetBackgroundColour("BLUE")
# instance, then you can make the handle much simpler. I'll
# show both methods below.
# instance, then you can make the handle much simpler. I'll
# show both methods below.
# The simple method assumes that there is no existing
# instance. Be sure of that with an assert.
assert self.GetInstance() is None
# The simple method assumes that there is no existing
# instance. Be sure of that with an assert.
assert self.GetInstance() is None