17 feb. 2010 : PHP-GTK Application descriptions can now be submitted in Brazilian Portuguese too. Thanks Bruno Bandeira !.
German and Italian still missing: who will contribute the translated categories for these languages ? Contact the team to offer your translations !
GtkWidgetparent::__construct, or you will have an error
(Fatal error: Cannot instantiate abstract class) for
primitive widgets (abstract ?) (GtkWidget),<?php
# simple code fragment (need to be completed)
class PrimitiveWidget extends GtkWidget {
function __construct() {
# Fatal error: Cannot instantiate abstract class
# PrimitiveWidget in line ... (__construct() line call)
# parent::__construct();
}
}
$w = new PrimitiveWidget();
?>GtkVbox for example<?php
class CompositeWidget extends GtkVbox {
function __construct() {
parent::__construct();
$this->label = new GtkLabel('test composite widget');
$this->add($this->label);
$this->add(new GtkLabel('an other label'));
$this->add(new GtkButton('Test me'));
$this->set_border_width(10);
}
}
$win = new GtkWindow();
$win->set_title('Composite Widget extension example');
$win->connect_simple('destroy', array('gtk', 'main_quit'));
$composite_widget = new CompositeWidget();
$vbox = new GtkVBox();
$win->add($vbox);
$vbox->pack_start($composite_widget, true);
$win->show_all();
Gtk::main();
?>
Neueste Kommentare
vor 30 Wochen 6 Tage
vor 1 Jahr 1 Woche
vor 1 Jahr 1 Woche
vor 1 Jahr 2 Wochen
vor 1 Jahr 2 Wochen
vor 1 Jahr 2 Wochen
vor 1 Jahr 3 Wochen
vor 1 Jahr 3 Wochen
vor 1 Jahr 3 Wochen
vor 1 Jahr 4 Wochen