| View previous topic :: View next topic |
| Author |
Message |
omis28ca
Joined: 26 Dec 2005 Posts: 11 Location: Fresno, CA
|
Posted: Sun Apr 23, 2006 10:47 am Post subject: A glade based STARTTODEVELOP example |
|
|
| 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
|
|
| Back to top |
|
 |
omis28ca
Joined: 26 Dec 2005 Posts: 11 Location: Fresno, CA
|
Posted: Sat Apr 29, 2006 4:21 am Post subject: Great example |
|
|
| 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
|
Posted: Sat Aug 26, 2006 4:34 am Post subject: Fanstastic |
|
|
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
|
Posted: Sat Aug 26, 2006 5:51 pm Post subject: |
|
|
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
|
Posted: Mon Aug 28, 2006 3:15 am Post subject: |
|
|
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 |
|
 |
|