USEREVENT clash fix, was Re: [pygame] Re: Starting the pygame 2 series

2018-07-28 Thread René Dudfield
Hello, how about this below for the custom event type API? Then we hide the USEREVENT in the docs, and suggest people use this. Then libraries can exist without stomping over each others events. Also, I think custom_type is a bit of a better name. Because it's an event type(not an event), and it's

Re: USEREVENT clash fix, was Re: [pygame] Re: Starting the pygame 2 series

2018-07-28 Thread Sam Bull
On Sat, 2018-07-28 at 09:59 +0200, René Dudfield wrote: > > def custom_type(): > >     """ Return an event type we can use for our own events. > >     """ Don't forget to mention in the documentation that StopIteration will be raised if there are no more event types available. signature.asc Descr