wxPython funtion EVT_PAINT

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ndoe
    New Member
    • Sep 2007
    • 12

    wxPython funtion EVT_PAINT

    what a funtion of EVT_PAINT if i not use that can it work normally for drawing or show a picture
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by ndoe
    what a funtion of EVT_PAINT if i not use that can it work normally for drawing or show a picture
    The wx.EVT_PAINT happens when some part of the interior of a window needs to be redrawn. A good example is a scrolled window. When the user scrolls, the part of the window's contents that becomes visible is repainted. Most widgets (a multi-line wx.TextCtrl, for example) take care of the repainting automatically.

    If you draw directly to the device context (wx.DC), then you will need to handle wx.EVT_PAINT events.

    Comment

    Working...