[wxPython-users] Some basic Questions in wxPython
Christopher Barker
Chris.Barker at noaa.gov
Thu Jul 6 10:57:15 PDT 2006
Daniel,
In the future, try to make a tiny sample that has just enough code to
illustrate your code, but no more (but is still runnable). The easier
you make it to wade through your code, the more likely we will.
> 1. If you click on Action Menu and then on Add Computer Details, the new
> window open at the left top corner. I want it to be in the center of the
> screen.
Call Dlg.Center() before ShowModel()
> 2. If you see, my main frame is not utilized except for having menus in
> them. All the menu clicks open a new window. I want that instead of opening
> new window for every task, I have the new window in the main frame....how
> can we accomplish this ?
Instead of Dialogs, use wx.Panels. Put the Panels on teh Frmae and
Show() the one you want, and Hide() the rest.
-Chris
--
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 at noaa.gov
More information about the wxpython-users
mailing list