PHPBrasil.com - Últimos Comentários https://phpbrasil.com Lista dos últimos comentários publicados nesse script. https://phpbrasil.com/script/Aq_Qo2pm-Oip/fale-conosco-anexo#24761 boa tarde, sou novo na area, instalei o php-gtk2 no fedora, tento rodar o aquivo: <?php $glade = new GladeXML('teste.glade'); $window1 = $glade -> get_widget('window1'); $btnSoma = $glade -> get_widget('button1'); $valor1 = $glade -> get_widget('spinbutton1'); $valor2 = $glade -> get_widget('spinbutton2'); $resultado = $glade -> get_widget('spinbutton3'); $btnSomar -> connect_simple('cliked', 'Somar', $valor1, $valor2, $resultado); $window1 -> connect_simple('destroy', array('gtk', 'main_quit')); function Somar($valor1, $valor2, $resultado){ $resultado -> set_text($valor1 -> get_text() + $valor2 -> get_text()); } Gtk::main(); ?> mais ta dando o seguinte erro: Gtk-Message: Failed to load module "pk-gtk-module" Gtk-Message: Failed to load module "atk-bridge" (somar.php:1807): libglade-WARNING **: Expected <glade-interface>. Got <interface>. (somar.php:1807): libglade-WARNING **: did not finish in PARSER_FINISH state Fatal error: Uncaught exception 'PhpGtkConstructException' with message 'could not construct GladeXML object' in /home/fabricio/Documentos/Calculadora/calculadora/Layout/somar.php:2 Stack trace: #0 /home/fabricio/Documentos/Calculadora/calculadora/Layout/somar.php(2): GladeXML->__construct('teste.glade') #1 {main} thrown in /home/fabricio/Documentos/Calculadora/calculadora/Layout/somar.php on line 2 Rafael Marçari Fri, 29 Mar 2024 04:57:44 UTC