add paintevent

add paintevent