[pygtk] Disable signals and events to use a button as a container, not as a button?

John Finlay finlay at moeraki.com
Sat Sep 5 06:37:39 WST 2009


Ryan Martin wrote:
> Hey Guys,
>     I have a strange situation that I'm having trouble finding a 
> solution for. In the application I'm building, I would like to use a 
> button as a container and not necessarily a button. Currently, I have 
> a text field and another button inside my main button in question. 
> What I would like is to disable all of the innate callbacks 
> (prelight/hover, clicked, etc.) on that main button and just have it 
> sit there while still being able to click the child button inside the 
> main button or enter text into the text field.
>
> One thing to consider is that I need to disable callbacks on the main 
> button but not on any of the widgets that are added to the main button 
> as a child.
>
> Is this possible? Did that make sense?
>
> Any help would be greatly appreciated. I have scoured through old 
> threads looking for clues.
Why do you need to use a button as a container when you don't want to 
use any of the button's features? Are there no GTK containers that work?

John


More information about the pygtk mailing list