News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP-GTK Community Site:
Easily empty GtkContainer/GtkWindow
March 08, 2007 @ 08:42:00

The PHP-GTK Community site has a quick new post today showing how to create/empty out a GtkContainer or GtkWindow in your code.

This function provides an easy way to empty a GtkWindow/GtkContainer. I use it when i need to refresh a part of my app by replacing some widgets with others. It can destroy or preserve the child widgets depending on your needs.

They provide both the code itself and a sample usage - a three line script that shows three ways to use it - empty out a container, empty out the container but keep its children intact, and how to use it in the event of a button click.

0 comments voice your opinion now!
phpgtk gtkcontainer gtkwindow empty children button event phpgtk gtkcontainer gtkwindow empty children button event


blog comments powered by Disqus

Similar Posts

PHP-GTK Community Site: Accessing geo-nick with Zend Framework (Zend_XmlRpc_Client)

PHP-Tip-a-Day: PHP Tutorial: King Floyd and the Seventeen Princes - A Tale of the Observer Pattern

PHP-GTK Community Blog: Articles on other sites (PHP6, an Intro & Desktop Apps)

PHP-GTK Community Site: PHP-GTK, throw it down.

Johannes Schluter's Blog: NetBeans plugin for running phpt tests


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant conference series community language wordpress opinion unittest laravel extension release podcast framework laravel5 interview development introduction api psr7 library

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework