I really have no idea what I'm talking about. :)If I have separate modules
that must use the same set of integers to do something, (like my solution
for wxPython menu bindings), I go like this:
module number + number
1 + 1 = 11
2 + 52 = 252
1 + 31 = 131
...and so on. This ensures that the bandwidth for each module remains
reserved. All of the numbers beginning in 1 belong to module 1, like 11,
110, and 1100, all the ones to 2 begin with 2, like 21, 210, and 2100. You
could add this value to pygame.USEREVENT for each submodule.
I've never used pygame.USEREVENT, so I have no idea what I'm talking about.
This might totally work, or be completely in the wrong direction. I
apologise in the case of the latter. :)
HTH
Ian
--
There are 10 kinds of people;
those who understand binary and those who don't.
Without order nothing can exist - without chaos nothing can evolve.