are you looking at a KEYDOWN event? __dict__ <http://pygame.org/docs/ref/event.html#pygame.event.EventType.__dict__> Event object attribute dictionary __dict__ -> dict
Read only. The event type specific attributes of an event. As an example, this would contain the unicode, key, and mod attributes of a KEYDOWN event. The dict attribute is a synonym, for backward compatibility. On Fri, Mar 4, 2016 at 4:13 AM, Stuart Laatsc <lscst...@gmail.com> wrote: > I'm confused what is > http://pygame.org/docs/ref/event.html#pygame.event.EventType.__dict__ > then? > > Thanks for your reply btw. > > On Thu, Mar 3, 2016 at 4:32 PM, Radomir Dopieralski <pyg...@sheep.art.pl> > wrote: > >> On Thu, 3 Mar 2016 14:34:47 -0600 >> Lsc Student <lscst...@gmail.com> wrote: >> >> > Hey everybody, >> > >> > I seem to be getting "AttributeError: event member not defined" >> > whenever I attempt to call "event.__dict__". What's going on here? Is >> > this a bug? Thanks in advance for any help. >> > >> > http://pastebin.com/qfKg2bAe http://pastebin.com/KQN8Fpc8 >> >> No, that is not a bug. The Events don't have a __dict__ attribute. >> The attributes that events have are described in the documentation: >> >> http://pygame.org/docs/ref/event.html >> >> -- >> Radomir Dopieralski >> > > -- Diliup Gabadamudalige http://www.diliupg.com http://soft.diliupg.com/ ********************************************************************************************** This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions. **********************************************************************************************