pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
30 stars 20 forks source link

Create writable Button outer_label property #76

Closed papr closed 6 years ago

papr commented 6 years ago

This PR introduces the ui.Button.outer_label property. This way one does not have to re-create a button element to change its outer label. This is especially useful if one has a button that has two different states:

  1. [Search]
  2. Searching... [Cancel]