User Tools

Site Tools


pg:start

Work notes on PHP-GTK

Dossiers Pages à ce niveau

Auto-creating variables from Glade files

From a suggestion by C. Weiske on irc://irc.freenode.net/php-gtk :

  • first idea: use the DOM of the Glade file and a XPath selection on nodes to iterate on the Glade model and create variables from the results
  • better idea: use
    __get

    in a class to create the members as needed, like

    $this->glade->get_widget_from_id($widgetname)

Background work

  • For programs needing work being done behind the scenes, without freezing the UI, using an idle-directe finite state machine can be done with the OSInet FSM

Ideas to implement

  • structured logging
    • log_source/log_sink interfaces
    • switchable backends: file, console, syslog, gtk label…
  • chrono class:
    • start
    • stop
    • lap (time)
    • implements log_source
pg/start.txt · Last modified: 2020/11/23 17:23 by 127.0.0.1