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.
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();
?>
Recent comments
43 weeks 1 day ago
44 weeks 6 hours ago
44 weeks 4 days ago
47 weeks 7 hours ago
1 year 15 weeks ago
1 year 19 weeks ago
1 year 23 weeks ago
1 year 23 weeks ago
1 year 23 weeks ago
1 year 40 weeks ago