Re: re drawing question
Phil <[email protected]>
| Newsgroups | gmane.comp.python.wxpython |
|---|---|
| Message-ID | <[email protected]> |
On 1/11/20 1:40 pm, Tim Roberts wrote: > Why don’t you just do it in onPaint? That’s what the message is > designed for. As a rule, you shouldn’t be doing a lot of drawing > outside of onPaint. Thank Tim for your replies. I only want Fill_board() called once and if I call it from OnPaint then Fill_board() will be called and the board will be filled with a different fill pattern every time the window is resized, for instance. What I could do I suppose is set up a boolean variable that tests if the Fill_board function has already been called or not. Is that the way a call-once function should be handled? -- Regards, Phil -- You received this message because you are subscribed to the Google Groups "wxPython-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/af16ef82-988d-6bd5-b3e1-4b6334040374%40gmail.com.