You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
447 B

  1. from field import *
  2. from glField import *
  3. def main():
  4. f = Field((160, 90))
  5. r = rule.Rule(2)
  6. f.setRule(r)
  7. f.setValue(2, 2, 1)
  8. screen = GLField(160, 90, 800,600, False)
  9. screen.start()
  10. counter = 0
  11. while screen.is_alive():
  12. f.update()
  13. c = f.getUpdatedValues()
  14. screen.appendChanges(c)
  15. print("master thread #" + str(counter))
  16. counter += 1
  17. if __name__ == '__main__':
  18. main()