473,396 Members | 1,722 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,396 software developers and data experts.

repaint function in wxPython

Im setting an image over a panel everytime a button is clicked but that image takes some time to set..that means i need to repaint it..do i have a function for this purpose in wxglade??

Any help??..its urgent!
Apr 21 '07 #1
3 5708
bartonc
6,596 Expert 4TB
Im setting an image over a panel everytime a button is clicked but that image takes some time to set..that means i need to repaint it..do i have a function for this purpose in wxglade??

Any help??..its urgent!
Let's start by getting you terminology straightened out a bit.
wxGlade is you GUI generator. While it's nice to know that you are using that to generate you GUI code, it's not relevant to your question.

wxPython is you GUI Toolkit. That's what is relevant.

To answer your question:
You may want to try
Expand|Select|Wrap|Line Numbers
  1. myImage.Update()
right after you put the image on the panel.

Repaint is for system-wide updating of the entire "window".
Apr 21 '07 #2
Let's start by getting you terminology straightened out a bit.
wxGlade is you GUI generator. While it's nice to know that you are using that to generate you GUI code, it's not relevant to your question.

wxPython is you GUI Toolkit. That's what is relevant.

To answer your question:
You may want to try
Expand|Select|Wrap|Line Numbers
  1. myImage.Update()
right after you put the image on the panel.

Repaint is for system-wide updating of the entire "window".
Actually the Image.Update() dint worked ..dunno why..but i found self.Refresh(True)
to be useful.:)
Thanx a ton for your help!
Apr 22 '07 #3
bartonc
6,596 Expert 4TB
Actually the Image.Update() dint worked ..dunno why..but i found self.Refresh(True)
to be useful.:)
Thanx a ton for your help!
You are welcome. I probably should have included that in my suggestion. I'm glad you found it.
Apr 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Anand | last post by:
I am calling a python script from LabVIEW. This is achieved by making a dll call to python22.dll. It works perfectly well for most of my code. I now want to throwup dialog boxes from python. It...
4
by: ulysses | last post by:
hi, I'm working in python 5 months. I think it's very cool language. I do a p2p python program GUI. First I make a software by wxpython. But I find wxpython use many many memory. Second I use...
1
by: timothy.williams | last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2 machine. I have python in a non-standard place, but I'm using --prefix with the configure script to point to where I have...
11
by: Ike | last post by:
I changing the size of frames dynamically in a page (I am restricted in that I cannot perform a reload of the content of any of the frames). In MSIE, when I resize the frames, thinks repaint...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
4
by: Bob | last post by:
Trying to repaint a form named fcon using a new filter: 'Repaint the form with the new data Forms!fcon.FilterOn = False Forms!fcon.Filter = "RecNo = " & currecno & " AND Currentvalue = -1"...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
3
by: --== Alain ==-- | last post by:
Hi, As i did not get any answer to my previous post, i post the topic again. How can i repaint my control, when an item from my custom control collection has changed ? in my collection...
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.