PYTHON   28

app-backend.py

Guest on 17th August 2021 01:47:34 PM

  1. # -----------------------------------------------------------------------------
  2. # Copyright (c) Nicolas P. Rougier. All rights reserved.
  3. # Distributed under the (new) BSD License.
  4. # -----------------------------------------------------------------------------
  5. """ This example show how to choose a configuration. """
  6. from glumpy import app
  7.  
  8. config = app.configuration.Configuration()
  9. config.major_version = 3
  10. config.minor_version = 2
  11. config.profile = "core"
  12. print(config)
  13. print("-----")
  14. window = app.Window(config=config)
  15. print("-----")
  16. print(window.config)
  17. print("-----")

Raw Paste


Login or Register to edit or fork this paste. It's free.