Re: [wxpython-users] newbie with questions
by Gre7g Luterman other posts by this author
May 9 2008 5:38AM messages near this date
Re: [wxpython-users] newbie with questions
|
[wxpython-users] newbie with some questions
On 5/9/08, Tim Mortimer <timmortimer@[...].au> wrote:
>
> {Sorry Folks - Attempting to resend my first post - as Plain Text:}
>
> Hello,
>
> I am new to wxPython, & it's the first GUI tool i've ever used.
>
> I started teaching myself Python circa June 2007, primarily to work with
> Csound to make "ambient", "experimental", &/or "generative" types of music.
>
> I now wish to use wxPython to start developing some front ends for my
> ideas.
>
> I have the "wx In Action" book & i have found it very helpful. Thank you to
> the authors.
>
> I have also been poking around with wxGlade over the last couple of days.
>
> I have some questions that haven't been answered through using the wx In
> Action book, & also as a result of looking through the wxPython demo
> application.
>
> Primarily they are
>
> 1) How can i add more than one Grid into a split wxFrame?
The best way is to put a panel in the split, a sizer in the panel, and put
whatever GUI items you want in the sizer. This will handle positioning and
sizing the items as the user changes the split.
3) Can someone show me in a general way (or link me appropriately, this must
> be asked all the time...) how to conditionally redraw & refresh the
> interface with widgets?
In general there is no need. Update the value in a widget and it will update
on the screen. All window objects have Refresh (to mark "dirty") and Update
(to repaint the dirty bits) methods, but it's fairly uncommon to need them.
If you dynamically change the items in a sizer, then you will need members
such as SetSizerAndFit, Layout, and/or, FitInside.
Good luck with your new programming adventure.
Gre7g
Thread:
Tim Mortimer
Robin Dunn
Gre7g Luterman
|