| View previous topic :: View next topic |
| Author |
Message |
pieaholicx
Joined: 02 Nov 2006 Posts: 3
|
Posted: Thu Nov 02, 2006 8:27 am Post subject: Using Glade files? |
|
|
Okay, I've done some googling, and I can't seem to find any good example of using Glade files with PHP-GTK.
The code I have is:
| Code: | <?php
class CExample extends GtkWindow
{
function __construct()
{
parent::__construct();
$this->glade = new GladeXML('example.glade');
}
}
$exampleMain = new CExample();
Gtk::main();
?> |
Am I not opening it right? Is there anything else I need to do? Thanks in advance for any help! |
|
| Back to top |
|
 |
pieaholicx
Joined: 02 Nov 2006 Posts: 3
|
Posted: Thu Nov 02, 2006 9:06 am Post subject: |
|
|
| Sorry for the double post. I found the error. The Glade file wasn't formatted right, so the main window wasn't visible. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Thu Nov 02, 2006 9:08 am Post subject: |
|
|
| PHP-Gtk has a glade tutorial. |
|
| Back to top |
|
 |
|