Desperately needing Help with 2 features of a program

J

JDevine

Hey. I posted a info about a program I have written that uses google
to get and download files by type and site. I need HELP!!! This
program is finished except for 2 features which, having tried for two
weeks to create I cannot. This is my first program EVER. I simply an
stuck. Please help. I was allowed by my employer to experiment with
programing / open source. I'd like to be able to deliver a complete
program, (so I can possibly do more of it soon). Here are the two
features I need to consider this program complete.
This program uses wxPython.

1. Update the label on a radiobox

2. Create a downlaod status progress bar. (I guess this has to be
threaded, many attempts led to endless erros about not using the
proper thread to interact with the GUI)

Find Source at http://gobblewin.sourceforge.net

OR

http://sourceforge.net/project/showfiles.php?group_id=116574&package_id=128018
 
R

Richie Hindle

[Justin]
1. Update the label on a radiobox

rb.SetItemLabel(3, "Richie's stuff")
2. Create a downlaod status progress bar. (I guess this has to be
threaded, many attempts led to endless erros about not using the
proper thread to interact with the GUI)

That's more than a one-liner. :cool:

The Wiki page at http://wiki.wxpython.org/index.cgi/LongRunningTasks talks
about this kind of problem at length, and includes a couple of alternatives
to using threads.

When using threading in a GUI, the number one rule is that only the main
thread can access the GUI. Worker threads that want to update the GUI must
do so by posting events to the main thread. The way a typical wxPython
program does this is by defining its own event class and using wxPostEvent
to post instances of that event class to the main thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top