[wxPython] Frames vs Windows

Chris,

Thanks for this explanation, it cleared things up for me. I think half the
battle with this technology is learning the terminology (whew).

Onwards!

Jeff

···

-----Original Message-----
From: wxpython-users-admin@lists.wxwindows.org
[mailto:wxpython-users-admin@lists.wxwindows.org]On Behalf Of Chris
Barker
Sent: Wednesday, September 11, 2002 11:53 AM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] Frames vs Windows

"J. Childers" wrote:

wxNewbie here. What is the difference between a wxFrame and a wxWindow?

When do I want to use each

one?

The terminology is a bit confusing. a wxFrame is what most folks think
of as a Window: a box on the screen that holds your application, etc. It
can be re-sized, moved, etc with the mouse by the window manager of the
system.

A wxWindow is the basic unit from which all the controls, etc. are
built. It is a rectangle on the screen that captures mouse clicks, draws
itself etc. a wxWindow will almost always be put into a Frame or other
window.

You want to use a frame to create an independent box on the screen to
house some part of your application. YOu want to use a wxWindow as the
basis for a custom control of your own design. All the built-in controls
are derived from a wxWindow already.

Look at the code in the demo, and the introductory stuff in the Wiki,
and it should start to become clear.

-Chris

NOTE: is this already in the Wiki or somewhere as a FAQ? if not, it
should be.

--
Christopher Barker, Ph.D.
Oceanographer
                                        
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwindows.org
http://lists.wxwindows.org/mailman/listinfo/wxpython-users