'create opengl objects when opengl is initialized'

def create_objects(self):

    if (not self.platform.initialized):
        self.platform.init()
    self.initialized = 1
    wx.CallAfter(self.Refresh)
