#NEWLINE# def EmptyLVITEM( item , subitem , mask = None , text_buf_size = 512 ) : #NEWLINE# #INDENT# extra = [ ] #NEWLINE# if ( mask is None ) : #NEWLINE# #INDENT# mask = ( ( ( ( commctrl . LVIF_IMAGE | commctrl . LVIF_INDENT ) | commctrl . LVIF_TEXT ) | commctrl . LVIF_PARAM ) | commctrl . LVIF_STATE ) #NEWLINE# #UNINDENT# if ( mask & commctrl . LVIF_TEXT ) : #NEWLINE# #INDENT# text_buffer = array . array ( 'c' , ( '\x00' * text_buf_size ) ) #NEWLINE# extra . append ( text_buffer ) #NEWLINE# ( text_addr , text_len ) = text_buffer . buffer_info ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# text_addr = text_len = 0 #NEWLINE# #UNINDENT# format = 'iiiiiiiiii' #NEWLINE# buf = struct . pack ( format , mask , item , subitem , 0 , 0 , text_addr , text_len , 0 , 0 , 0 ) #NEWLINE# return ( array . array ( 'c' , buf ) , extra )