#NEWLINE# def handle_window_prop( self , event , packet ) : #NEWLINE# #INDENT# window = self . inventory . window #NEWLINE# prop_id = packet . data [ 'property' ] #NEWLINE# prop_name = window . inv_data [ 'properties' ] [ event ] #NEWLINE# window . properties [ prop_id ] = packet . data [ 'value' ] #NEWLINE# self . event . emit ( 'inventory_win_prop' , { #NEWLINE# #INDENT# 'window_id' : packet . data [ 'window_id' ] , #NEWLINE# 'property_name' : prop_name , #NEWLINE# 'property_id' : prop_id , #NEWLINE# 'value' : packet . data [ 'value' ] , #NEWLINE# #UNINDENT# } )