Hello - I've enjoyed using the framework so far, but have run in to a
frustration with my window not being redrawn. From a basic framework
perspective, here's how I have things set up. class My_Window( Window ) def
__init__(self, **kwds):
Window.__init__(self, **kwds) self._main_frame = Frame( #frame
attributes ) self._sub_frame = None self.place( _main_frame ) def
set_sub_frame( self, sub_frame ): if None <> self._sub_frame:
self._main_frame.remove( self._sub_frame ) self._main_frame.place(
sub_frame ) self._sub_frame = sub_frame #end My_Window class class My_App(
Application ) def __init___( self ): Application.__init__(self) def
open_app( self ): self._main_window = My_Window( #window attributes )
# I create other buttons and things on the GUI that will activate #
actions in this main application self._main_window.show() def
button_is_pressed( self ): new_frame = Frame( # frame attributes )
self._main_window.set_sub_frame( new_frame ) #end My_App class my_app = My_App(
) my_app.run( ) #end code 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? This is really basic
code that shows the main points (or at least what I believe to be the main
points for interacting with PyGUI). Please let me know if there's more
clarification needed. Thanks for your time. jason
____________________________________________________________
The New "Skinny" Fruit
How This Strange 62-Cent African Fruit Is Making Americans Skinny.
http://thirdpartyoffers.juno.com/TGL3131/4f6decbd5129a2ea95b5st05duc_______________________________________________
Pygui mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pygui