def __init__(self, fullscreen=False): title = "Demo (F1 for help - 'm' to toggle menu)" Viewer.__init__(self, -1, -1, title, fullscreen) self.uiView = False self.uiDemo = True self.showUI = True self.source = '' self.defaultColor = gl.ColorRGBA(100, 100, 100, 255) self.edgeColor = gl.ColorRGBA(255, 255, 255, 255)
def __init__(self, fullscreen = False): title = "Demo (F1 for help - 'm' to toggle menu)" Viewer.__init__(self, -1, -1, title, fullscreen) self.uiView = False self.uiDemo = True self.showUI = True self.source = '' self.defaultColor = gl.ColorRGBA(100,100,100,255) self.edgeColor = gl.ColorRGBA(255,255,255,255)
def onChar(self, ch): if ch == 'm': self.showUI = not self.showUI self.onRefresh() Viewer.onChar(self, ch)