473,326 Members | 2,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

wxpython : wxDc and Refresh() = flash

Juste a simple question about the DC in wxpython ...

I've made a wxWindow class, where i need to paint myself the content.
so i've added an evt_paint() to draw in the wxPaintDC ...
It works like a charm !! superb

To trigg the painter event, in some codes, i use the Refresh() method
It works greatly !

But the trouble is :

i found it flash a lot my wxwindow, when i trigg the painter ...
(i see speed "drawing horizontal line" .. which make the screen seems to
flash (i don't know how to describe that, but that flash my screen ;-) ))

Here are my questions :

- is there a way to wait for an "vertical top" to draw the content (to
synchronize with the screen redraw) ?
- is there a way to implement a double-buffering system, to let the redraw
be smoother ?

in an another way : how to skip theses flash redraw ?
Jul 18 '05 #1
2 5355
marco wrote:
Juste a simple question about the DC in wxpython ...

I've made a wxWindow class, where i need to paint myself the content.
so i've added an evt_paint() to draw in the wxPaintDC ...
It works like a charm !! superb

To trigg the painter event, in some codes, i use the Refresh() method
It works greatly !


Two points
1) you would do well to subscribe to the wxPython news group, they
specifically handle wxPython related issues and you will have a better
shot at getting the right answer.

http://wxpython.org/maillist.php

2) In the demos supplied by wxPython, see the wxScrolledWindow example.
They show how to use a double buffering screen that will help prevent
the flashing screen when it is being redrawn. Just look for

if BUFFERED:

in the code. If you don't have access to this, I'll send it to you.

Brian

Jul 18 '05 #2
> > Juste a simple question about the DC in wxpython ...

I've made a wxWindow class, where i need to paint myself the content.
so i've added an evt_paint() to draw in the wxPaintDC ...
It works like a charm !! superb

To trigg the painter event, in some codes, i use the Refresh() method
It works greatly !
Two points
1) you would do well to subscribe to the wxPython news group, they
specifically handle wxPython related issues and you will have a better
shot at getting the right answer.

http://wxpython.org/maillist.php


sure ... and i've already subscribe to it
2) In the demos supplied by wxPython, see the wxScrolledWindow example.
They show how to use a double buffering screen that will help prevent
the flashing screen when it is being redrawn. Just look for

if BUFFERED:

in the code. If you don't have access to this, I'll send it to you.

Brian


thanx a lot ...
i've got the demo, and got access to the code ...
(i use it a lot, but never see an example to disabled this flashed
rendering)

i will use it ...
thanx for your answer ...
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Lamb | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok, this one I did try before coming here... :) I am trying to report the status of what is going on to the status bar of the main window of my...
8
by: Jonathan Daugherty | last post by:
Does anyone here know if the wxImage class in wxPython supports dislaying images from URLs? -- Jonathan Daugherty http://www.cprogrammer.org "It's a book about a Spanish guy called Manual,...
0
by: plumpy321 | last post by:
Hi, I took an example from wxPython with the IE web browser and created a refresh button to automatically refresh a web page in 5 second intervals. But I notice that the memory utilization in...
8
by: Jan Danielsson | last post by:
Hello all, I wanted to plot some statistics, so I wrote a simple wxPython class to do it. Then I realized that I would like to draw bar graphs, so I added that too. Since I'm a complete...
4
by: KvS | last post by:
Hi all, I'm pretty new to (wx)Python so plz. don't shoot me if I've missed something obvious ;). I have a panel inside a frame, on which a Button and a StaticText is placed: self.panel =...
0
by: Vladi | last post by:
Hello everybody, I have a asp.net 1.1 page which has the following controls: 4 Images whose src points to an image.aspx file which returns a different jpg from a DB 1 flash object on top of those...
3
by: citronelu | last post by:
Hi, I'm new to wxpython, and the following code is my first serious attempt: #~ start code import wx class MyPanel(wx.Panel):
3
by: Soren | last post by:
Hi, Id like to make my own special listbox.. I want to able (at the push of a button) to add another item to my special listbox... each item is a panel with a label, some buttons and maybe a...
3
by: wongjoekmeu | last post by:
Dear All, I want to write a GUI program with wxPython displaying an image. But the image I have is monochromatic. When I retrieve the data from the image I end up with a list of integer. Starting...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.