gnope php gtk gui gnope.org  

Using Glade files?

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
pieaholicx



Joined: 02 Nov 2006
Posts: 3

PostPosted: Thu Nov 02, 2006 8:27 am    Post subject: Using Glade files? Reply with quote

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

PostPosted: Thu Nov 02, 2006 9:06 am    Post subject: Reply with quote

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

PostPosted: Thu Nov 02, 2006 9:08 am    Post subject: Reply with quote

PHP-Gtk has a glade tutorial.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.