[pygtk] ProgressBar widget click event

Tom Cato Amundsen tca at gnu.org
Wed Nov 8 01:14:21 WST 2006


> >
> > Maybe I am wrong, but the progressbar doesn't support clicking events.
> > You can create a button (which is a container) and associate a progress
> > bar as child. This way, when you press the progress bar, you really
> > press the button, that emits the clicked signal.
> > You can give no border to the button, making it invisible.
> >

You should add the progress bar to a gtk.EventBox

Tom Cato

> > Bye.
> 
> If you think this will work, I will definitely give this a shot.
> 
> I had thought of this and I had expected it not to work given that I am using 
> a ProgressBar as the tab for a notebook page. The click on the bar area 
> wasn't activating the page while clicking on a label would. Neither of those 
> support clicking, I think. This led me to assume there was a problem with 
> ProgressBar.
> 
> Noah
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> 

-- 
Tom Cato Amundsen <tca at gnu.org>                 http://www.solfege.org/
GNU Solfege - free ear training    http://www.gnu.org/software/solfege/


More information about the pygtk mailing list