Re: Earwax

I want to continue the discussion of extra attributes. As of now, I have to provide default values for things if I inherit from, say, the menu class. If I want those attributes to be included, I have to do something like this for each one of them:

@some_value.validator
def check_some_value(self, attribute, value):
    # Stuff

If I don't do this, the values will be empty, which causes my programs to crash. Is there any way of adding required attributes when inheriting from earwax classes?
Edit: I just tried to run lucky thirteen with the latest version of earwax and it didn't work. The only sound that played was the intro message without the music.
Edit number 2: If I want a level to pop itself off the stack after a certain amount of time has elapsed, would I schedule an earwax Task to do this? I'm just confirming that I've read your previous reply correctly



-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector

Reply via email to