Greg - Thanks for the response. 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. 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. 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. Any help or pointing to the pertinent documentation is
appreciated. Thanks in advance. jason
---------- Original Message ----------
From: Greg Ewing <[email protected]>
To: "[email protected]" <[email protected]>
Cc: [email protected]
Subject: Re: [Pygui] Windows not being refreshed
Date: Sun, 25 Mar 2012 16:56:59 +1300
[email protected] wrote:
> When I give a new sub frame (or any other GUI object) in to the main
> frame, all of the text of both objects are drawn in the main window. If
> I hide the window and bring it back to the front, it'll be re-drawn, but
> I can't seem to find where to do that programmatically. Is there
> something that I'm missing in setting up the application/window?
Are you talking about user-defined views (derived from View) or
built-in components (buttons, labels, text fields, etc)?
To refresh a user-defined view, you call its invalidate() or
invalidate_rect() method. You shouldn't need to explicitly tell
built-in objects to refresh, they should do it themselves
automatically whenever needed.
Do you have something that isn't refreshing when you think it
should? Can you post a complete example?
--
Greg
____________________________________________________________
53 Year Old Mom Looks 33
The Stunning Results of Her Wrinkle Trick Has Botox Doctors Worried
http://thirdpartyoffers.juno.com/TGL3131/4f7154841dc2a2fcfcecst06duc
_______________________________________________
Pygui mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pygui