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

questions to anyone who uses wxPython

hello. i'm using wxPython as my GUI package and whenever my program
executes a long process which takes at least 2 or 3 seconds, the user
interface gets corrupted while executing the progrocess during the
period.

i have tried the following lines of code...

frame = mainwindow(None, -1, 'my program')
....
....
frame.UpdateWindowUI()

and it did not make any difference at all.

could anyone help me?

Jul 20 '06 #1
2 1171

damacy wrote:
hello. i'm using wxPython as my GUI package and whenever my program
executes a long process which takes at least 2 or 3 seconds, the user
interface gets corrupted while executing the progrocess during the
period.

i have tried the following lines of code...

frame = mainwindow(None, -1, 'my program')
...
...
frame.UpdateWindowUI()

and it did not make any difference at all.

could anyone help me?
I don't really understand the question - what do you mean when you say
the user interface gets corrupted?

Nevertheless, the following pointer may help -

http://tinyurl.com/hj84l

It is an article in the wxPyWiki that discusses various ways of
handling longrunning tasks.

HTH

Frank Millman

Jul 20 '06 #2

damacy wrote:
hello. i'm using wxPython as my GUI package and whenever my program
executes a long process which takes at least 2 or 3 seconds, the user
interface gets corrupted while executing the progrocess during the
period.
Hi Darnacy,

I had the same issue and used wxProcess to run the long process (in
this case a file copy) in a seperate process to the GUI

See src zip at :
http://www.latedecember.com/sites/software/LDBackup/

Thanks,
Davy Mitchell

Jul 20 '06 #3

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

Similar topics

1
by: Helmutt | last post by:
Hi all! I'm trying to learn myself wxPython, and I got some questions: Whats the name of the event that occur when I press the exit/cross-button on the frame? How do I connect a function with...
3
by: Kenneth McDonald | last post by:
If this is not an appropriate newsgroup for this type of posting, please let me know and (if possible) suggest an alternative. I've done a fair bit of research on the net, but information is...
0
by: Durumdara | last post by:
Hi ! I have an application that I compile to exe. 1.) I want to compile main.ico into exe, or int zip. Can I do it ? 2.) Can I compile the result to my specified directory, not into the...
3
by: KvS | last post by:
Hi all, I've been reading about unicode in general and using it in Python in particular lately as this turns out to be not so straightforward actually. I wanted to aks two questions: 1) I'm...
5
by: Laszlo Nagy | last post by:
Hello, I was trying to get answers for these. SPE homepage was down. Then I found it on berlios (http://developer.berlios.de/forum/forum.php?forum_id=12695) but no one answered since 5 days. In...
9
by: jay | last post by:
Hi, I'm totally new to Python and was hoping someone might be able to answer a few questions for me: 1. What are your views about Python vs Perl? Do you see one as better than the other? ...
4
by: fabdeb | last post by:
Hi every one, I m a sysadmin who want to know how to use python. I dont know anything about oriented object programation, i only know bash and a little perl. I have some simple questions about...
4
tharden3
by: tharden3 | last post by:
I noticed that about half of the questions in this forum are about installation problems in UNIX/Linux. Does anyone know any good simple-to-in-depth tutorials for learning to "build" and "install"...
6
by: LessPaul | last post by:
I recently discovered Python and see it as a great language to use for personal projects (and more). I made my living for over a decade as a coder in C, C++, ADA, Fortran, and Assembly before...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
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...

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.