def mkpixmap(w, h, fmt, data):
 fmtinfo = _fmt_to_mac[fmt]
 rv = struct.pack('lHhhhhhhlllhhhhlll', (id(data) + MacOS.string_id_to_buffer), ((w * 2) + 32768), 0, 0, h, w, 0, 0, 0, (72 << 16), (72 << 16), fmtinfo[0], fmtinfo[1], fmtinfo[2], fmtinfo[3], 0, 0, 0)
 return Qd.RawBitMap(rv)

def mkpixmap ( w , h , fmt , data ) : fmtinfo = _fmt_to_mac [ fmt ] rv = struct . pack ( 'lHhhhhhhlllhhhhlll' , ( id ( data ) + MacOS . string_id_to_buffer ) , ( ( w * 2 ) + 32768 ) , 0 , 0 , h , w , 0 , 0 , 0 , ( 72 << 16 ) , ( 72 << 16 ) , fmtinfo [ 0 ] , fmtinfo [ 1 ] , fmtinfo [ 2 ] , fmtinfo [ 3 ] , 0 , 0 , 0 ) return Qd . RawBitMap ( rv )
kludge a pixmap together .