<html><div>Greg -&nbsp;</div><div>&nbsp;</div><div>Thanks for the response.</div><div>&nbsp;</div><div>Initially, I had everything subclassed (MyApp( Application ) creating MyWindow( Window ) containing a provided Frame containing a MyFrame( Frame ) containing a provided Grid. As an experiment, I changed things so that each class just creates one of the built-in object and provides a method for retrieving the built in Window/Frame. I left MyApp as a subclass of Application so that I would still have someone able to handle button events.</div><div>&nbsp;</div><div>However, I'm still seeing the same behavior when I scroll through the list, namely, not having anything removed from the display when something new is supposed to be drawn on it.</div><div>&nbsp;</div><div>I feel as though I'm completely missing something fundamental. With this sort of setup, when I click to scroll down, am I expected to have an overridden method that will be invoked? At what level will one of my object be called first? What am I expected to do with that call? I've tried creating a draw method (that is invoked when I try to scroll), but I'm at a bit of a loss as to what I'm supposed to do with the provided canvas and rectangle.&nbsp;</div><div>&nbsp;</div><div>Any help or pointing to the pertinent documentation is appreciated.</div><div>&nbsp;</div><div>Thanks in advance.</div><div>&nbsp;</div><div>jason</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div>&nbsp;</div><div><br><br>---------- Original Message ----------<br>From: Greg Ewing &lt;greg.ewing@canterbury.ac.nz&gt;<br>To: "jkamph@juno.com" &lt;jkamph@juno.com&gt;<br>Cc: pygui@python.org<br>Subject: Re: [Pygui] Windows not being refreshed<br>Date: Sun, 25 Mar 2012 16:56:59 +1300<br><br>jkamph@juno.com wrote:<br><br>&gt; When I give a new sub frame (or any other GUI object) in to the main <br>&gt; frame, all of the text of both objects are drawn in the main window. If <br>&gt; I hide the window and bring it back to the front, it'll be re-drawn, but <br>&gt; I can't seem to find where to do that programmatically. Is there <br>&gt; something that I'm missing in setting up the application/window?<br><br>Are you talking about user-defined views (derived from View) or<br>built-in components (buttons, labels, text fields, etc)?<br><br>To refresh a user-defined view, you call its invalidate() or<br>invalidate_rect() method. You shouldn't need to explicitly tell<br>built-in objects to refresh, they should do it themselves<br>automatically whenever needed.<br><br>Do you have something that isn't refreshing when you think it<br>should? Can you post a complete example?<br><br>-- <br>Greg</p></html>

<br><br><font SIZE="2" color="#000000">____________________________________________________________</font><br><a style="TEXT-DECORATION: none" href="http://thirdpartyoffers.juno.com/TGL3132/4f7154841dc2a2fcfcecst06duc" target=_blank><font face="Arial"><font color="#004080" size="3"><b>53 Year Old Mom Looks 33</b></font><br><font color="#000000" size="2">The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried<br></a><a style="COLOR: #000000" href="http://thirdpartyoffers.juno.com/TGL3132/4f7154841dc2a2fcfcecst06duc" target=_blank>consumerproducts.com</a></font></font>