[GRASS-dev] New installation for wxPython GUI

Michael Barton michael.barton at asu.edu
Thu Aug 10 19:55:41 EDT 2006


I think we'll need to switch to a buffered device context (DC) for graphics
to stop the flicker.

The disappearing screen is real weird. It's like any other window acts as an
eraser. I could try a static bitmap instead of a DC and see what happens.
But first I'm going to pose this question to Robin Dunn on the wxPython
list. Hopefully he'll have some sage advice.

Michael
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton


> From: Moritz Lennert <mlennert at club.worldonline.be>
> Date: Fri, 11 Aug 2006 01:50:55 +0200
> To: Michael Barton <michael.barton at asu.edu>
> Cc: Trevor Wiens <twiens at interbaun.com>, David Finlayson
> <david.p.finlayson at gmail.com>, Jachym Cepicky <jachym.cepicky at centrum.cz>,
> Grass Developers List <grass-dev at grass.itc.it>, Yann Chemin
> <ychemin at gmail.com>
> Subject: Re: [GRASS-dev] New installation for wxPython GUI
> 
> Michael Barton wrote:
>> This change in binding the paint event from the panel where the painting
>> goes on to the entire frame has bad effects on window resizing. It makes it
>> very choppy, unresponsive, and sometimes inaccurate.
>> 
>> Adding in the 3 lines to redraw the current image into the onFocus event is
>> also problematic. It causes the display to disappear (and sometimes
>> reappear) anytime you change focus.
> 
> I haven't had any of the above problems.
> 
>> 
>> I've uploaded a new version of mapdisp.py to try out (I'm a bit in the dark
>> because I only have sporadic access to a Debian machine).
> 
> 
> Now I there is no redrawing once the window is visible again.
> 
>> 
>> I've added some event.Skip() lines to the event handlers. This will let them
>> continue to process other events while processing their own. So I'm hoping
>> it will help with the disappearing display when you pass another window over
>> it.
> 
> 
> I haven't noticed any change.
> 
> Moritz




More information about the grass-dev mailing list