Re: Button How to intercept signal from a istance of classinto another class
I think you have not understood
It is not possible use this sintax parent::OneFunction();
because the mybuttons doesn't extends mywin class
at this moment I use one method that find parent window for button
In class mybuttons ...
// find window parent
public function get_window(){
$parent = $this;
do{
$w = $parent;
$parent = $w->get_parent();
} while($parent != null);
return $w;
} // Fine cerca window parent
And then callback
function OnClose($button)
{
$win =$this->get_window();
$win->myfunction();
return true;
}