thickness=2) g4.set_max(180) g5 = Dashboard.Gauge(ws, (5 * x, 100), raio, color=(200, 20, 200), display=Dashboard.Gauge.BAR) def call_sld(clickup, pos): if clickup: print pos g1.set_value(pos) sld = Dashboard.Slide(ws, (100, 400), callback=call_sld) ev = Dashboard.Event() sld.draw(0.7) while not done: # This limits the while loop to a max of 10 times per second. # Leave this out and we will use all CPU we can. clock.tick(10) for event in pygame.event.get(): # User did something ev.active(event, [bt.click, sld.click]) if event.type == pygame.QUIT: # If user clicked close done = True # Flag that we are done so we exit this loop