wxGTK: Initial widget positioning problems [was: Re: [wx-dev] wxGTK: wxHtmlWindow with embedded widgets]

Robin Dunn robin at alldunn.com
Tue Mar 6 11:15:15 PST 2007


Robin Dunn wrote:
> Robin Dunn wrote:
>> Vadim Zeitlin wrote:
>>> On Wed, 07 Feb 2007 17:59:14 -0800 Robin Dunn <robin at alldunn.com> wrote:
>>>
>>> RD> I think I'm seeing something similar in a couple cases with 
>>> sizers.  It RD> looks as if the sizer's first Layout is not taking 
>>> effect when the RD> parent panel is first shown, and all widgets are 
>>> stuck up in the corner, RD> but then doing something as simple as 
>>> clicking on a button will cause RD> all the widgets to snap to where 
>>> they are supposed to go, (even though RD> nothing that button does 
>>> causes a size event!!)
>>>
>>>  Unfortunately I didn't have time to look at this before leaving so 
>>> all I
>>> can say is that to me it looks like a call to wxWakeUpIdle() is missing
>>> somewhere as wxGTK does layout in idle time AFAIK. 
>>
>> Yes, that sounds like it might be on the right track, but I expect
>> there's more to it than that, as there are lots of opportunities for
>> idle events before the layout fixes itself (mouse overs, activity in
>> other parts of the UI, etc.)
>>
>>
>>> But I have no idea why
>>> would it have changed as I don't remember any recent changes in this 
>>> area.
>>
>> Wasn't there some changes by Paul a few months ago to the gtk_pizza
>> widget?  Could they have had something to do with this?
>>
> 
> 
> I've made a couple videos of this bug in action.
> 
> 
> http://alldunn.com/temp/layout_prob1.qt
> http://alldunn.com/temp/layout_prob2.qt
> 
> The first is an interactive PyShell session where I create a couple 
> widgets and manipulate them a bit.  The second shows a couple samples 
> from the wxPython demo that also manifest this problem.
> 

Does anybody have any other ideas about this?  It would be real nice to 
have this fixed in 2.8.2.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list