예제 #1
0
 /**
  * Class Constructor
  * @param $value Label's text
  */
 public function __construct($value)
 {
     parent::__construct();
     parent::set_size_request(-1, -1);
     $this->setValue($value);
     $this->set_alignment(0, 0.5);
     parent::set_use_markup(TRUE);
 }
 function __construct()
 {
     parent::__construct();
     $this->foo = 'abcdef';
 }
 /**
  * @name __construct($text) 
  * @param string $text Texto à ser mostrado no GtkLabel
  * @return GtkLabel
  */
 public function __construct($text)
 {
     parent::__construct($text);
     // Alinha o texto ao meio e à esquerda
     parent::set_alignment(0, 1);
 }