public function iniciarGUI() { $this->conectarCampo(); //começa a contar o tempo $this->tempo->iniciar($this, $this->tempoMax); Gtk::main(); }
/** * Método do carregamento do formulario * * @name frmDemo_onload() */ public function frmDemo_onload() { // Carrega o treeview $this->__load_trvDemo(); // Inicia a aplicação $this->widgets['frmDemo']->show_all(); Gtk::main(); }
function ExecXMoney() { CheckSistema(); ExecWizard(); ExecLogin(); ExecJanelaPrincipal(); Gtk::main(); }
public function init(GtkFrame $userList, GtkFrame $userForm, GtkFrame $rolePanel) { $mainVBox = new GtkVBox(false, 10); $mainHBox = new GtkHBox(true, 10); $mainVBox->pack_start($userList, true, true, 0); $mainHBox->pack_start($userForm, true, true, 0); $mainHBox->pack_start($rolePanel, true, true, 0); $mainVBox->pack_start($mainHBox, false, false, 0); $this->window->add($mainVBox); $this->window->show_all(); Gtk::main(); }
} function pocitajtb() { #prepocet tb podla st. casu a chyb } load_startovka($cb[0]); $p = current($G["astartovka"]); show_vysledky($G['beh']->get_text(), $p[1]); $window->show_all(); function show_display() { global $window2, $G; $window2->show_all(); } $timeout_ID = Gtk::timeout_add(10, 'process_task'); Gtk::main(); function buttonbp() { global $G; if (prev($G["behy"])) { $b = current($G["behy"]); $G["beh"]->set_text($b[0]); load_startovka($b[0]); } else { reset($G["behy"]); $b = current($G["behy"]); $G["beh"]->set_text($b[0]); load_startovka($b[0]); } } function buttonbd()
/** * Método do carregamento do formulario * * @name frmDemo_onload() */ public function frmDemo_onload() { // Inicia a aplicação $this->widgets['frmDemo']->show_all(); Gtk::main(); }
public function iniciarGUI() { Gtk::main(); }
/** * Shows application window and enters main loop. * */ public function run() { $this->window->show_all(); Gtk::main(); }
function exec($method, $content, $sel_options = '', $readonlys = '', $preserv = '') { if (!$sel_options) { $sel_options = array(); } if (!$readonlys) { $readonlys = array(); } if (!$preserv) { $preserv = array(); } if (!class_exists('gtk')) { if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { dl('php_gtk.dll'); } else { dl('php_gtk.so'); } } /* * Create a new top-level window and connect the signals to the appropriate * functions if the window not already exists. */ if (!$GLOBALS['phpgw_info']['etemplate']['window']) { $window =& new GtkWindow(); $window->connect('destroy', array('etemplate', 'destroy')); $window->connect('delete-event', array('etemplate', 'delete_event')); $window->set_title('phpGroupWareGTK: ' . $GLOBALS['phpgw_info']['server']['site_title']); $window->set_default_size(1024, 600); $GLOBALS['phpgw_info']['etemplate']['window'] =& $window; } else { $window =& $GLOBALS['phpgw_info']['etemplate']['window']; } $this->result = array('test' => 'test'); $table =& $this->show($this->result, $content, $sel_options, $readonlys); $table->set_border_width(10); $table->show(); $swindow =& new GtkScrolledWindow(null, null); $swindow->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); $swindow->add_with_viewport($table); $swindow->show(); $window->add($swindow); $window->show_all(); /* Run the main loop. */ Gtk::main(); $this->collect_results(); $swindow->hide(); $window->remove($swindow); unset($swindow); unset($this->widgets); // set application name so that lang, etc. works list($GLOBALS['phpgw_info']['flags']['currentapp']) = explode('.', $method); ExecMethod($method, array_merge($this->result, $preserv)); }
/** * Executa a requisição da informação * * @access private * @name __request_info * @param string $command Comando para buscar a informação * @return mixed */ private function __request_info($command) { // Faz a requisição da informação $this->__command($command); $this->getting_info = TRUE; // Inicia um looping até que a informação seja retornada Gtk::main(); // Retorna a informação $this->getting_info = FALSE; return trim($this->info_data); }