• 26 May 2013 - Since the new version attracted too many spammy registrations (around 250 fake accounts/day), user registrations are now protected by Mollom's spam protection service. Contact us if this causes some trouble.
  • 01 May 2013 - After the site upgrade, all passwords were reset and you will need to ask the site for a login reset on your first connection.

PHP-GTK Support

Tips: before you post a support request, read the fine support page, try searching these forums before, and ask on the mailing lists. This is NOT for questions relating to the site.

Call Function Within Class Using Gtk::timeout_add();

Hello,
Calling a function on a repetitive basis is simple enough using something like:
Gtk::timeout_add(200, 'subtract'); //call subtract() 5 times per second

However, how would I call subtract() if it is within a class? Example:

PHP-GTK Glade object

Hi,

Does anybody know how to access the object attribute in a .glade file, i have tried googling and spent hours reading the manual, without much success. I would like to access the attribute to make my application dynamically load a class at the time the signal is sent, rather than have it all sitting in memory.

An extract from my glade file:

<signal name="clicked" handler="on_toolbarNew_clicked" object="myobject" last_modification_time="Sat, 12 May 2007 02:45:00 GMT"/>

How I envision its usage:

PHP-GTK FAQ

This topic is created to gather all recommendations gathered over time from the most frequently asked questions on the mailing lists and on IRC. So go ahead, add your own Q&A, and I'll update the main post as required !

A PHP-GTK widget which needs to continuously synchronize data

I need to develop a desktop widget which needs to be run in the silent mode. This widget (application) needs to continuously synchronize data from the parent website. We were trying to develop this using PHP-GTK but are unable to come up with an appropriate solution.

The desktop widget needs to show the user real time updates made on the website similar to real player widget. So I need support to understand how to make this widget in silent mode and to show the real time updates.

PHP-GTK programming

Hi! right firstly I'm very new to PHP-GTK2, though I have done a small amount of php programming many years ago.

Gone through the manual, and followed some of the few tutorials available, and so far found it very easy to use! at least to make a window appear :)

The problem is I'm now stuck.. :)

What im trying to do is to make a crossplatform 'Site Shop' application, now this is a far too big off project to undertake on its own, so Ive subdivided into small areas to work on and hopefully learn PHP-GTK2.

Running external aplication

Hello, I want to create a PHP-GTK application, which should be a frontend for some command-line utilities. Now my question is: How do I run an external (*.exe) application from my PHP-GTK program? And how do I know the application has finished? I've been searching for this in the documentation, but I couldn't find an answer. Thank you.
Syndicate content