gnope php gtk gui gnope.org  

A glade based STARTTODEVELOP example

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



Joined: 26 Dec 2005
Posts: 11
Location: Fresno, CA

PostPosted: Sun Apr 23, 2006 10:47 am    Post subject: A glade based STARTTODEVELOP example Reply with quote

It would be nice to see a StartToDevelop Package example using a simple hello world gladeXML file and a button with a callback. i believe it would help beginners grasp the idea and the advantages of using gladeXML files with PHP-GTK2.I currently parse glade files in my programs and find it to be very efficient when i need to make changes in my GUI based PHP programs.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Fri Apr 28, 2006 1:27 pm    Post subject: Reply with quote

I made a glade tutorial:
http://php-gtk2.de/manual/en/html/tutorials/tutorials.helloglade.html
Back to top
omis28ca



Joined: 26 Dec 2005
Posts: 11
Location: Fresno, CA

PostPosted: Sat Apr 29, 2006 4:21 am    Post subject: Great example Reply with quote

Its simple and to the point .... perfect for newbies like us. great work on the PHP-GTK2 documentation.
Back to top
suomaf



Joined: 26 Aug 2006
Posts: 3

PostPosted: Sat Aug 26, 2006 4:34 am    Post subject: Fanstastic Reply with quote

Hello all,
That tutorial is fantastic, really helped me out. I have a few questions tho, if i wanted to have a user login first then see the application, do I use 2 glade files, 1 for the login dialog and 1 for the main window or do I have to lump all into the 1 glade file. I am going for something like this

01. present user with login window/dialog
02. If user logs in correctly then show the main app
02-a. If user logs in incorrectly then close everything

I have done the login and also the barebones main application window. As I am very newbie to php-gtk and programing applications in general, I really would like to stick with glade+php-gtk.

Thanks for any help that you can give.

Suomaf
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Sat Aug 26, 2006 5:51 pm    Post subject: Reply with quote

You can use any number of files you feel comfortable with :)
If you are using one file, you should a) set a root path to load only the window you want to, or b) set the windows hidden and show them only when you need them. Otherwise, all of them are shown after the glade file is loaded.
Back to top
suomaf



Joined: 26 Aug 2006
Posts: 3

PostPosted: Mon Aug 28, 2006 3:15 am    Post subject: Reply with quote

Hellow Cwesike,

Thank you so much, if i was using 2 glade files such as login.glade and main.glade, what would the code look like? and If it was 1 big file all.glade Do i set the windows hidden using glade?

Apologise for all the newbie questions

Suomaf
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.