本文整理汇总了PHP中Gtk::main方法的典型用法代码示例。如果您正苦于以下问题:PHP Gtk::main方法的具体用法?PHP Gtk::main怎么用?PHP Gtk::main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk
的用法示例。
在下文中一共展示了Gtk::main方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: iniciarGUI
public function iniciarGUI()
{
$this->conectarCampo();
//começa a contar o tempo
$this->tempo->iniciar($this, $this->tempoMax);
Gtk::main();
}
示例2: frmDemo_onload
/**
* 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();
}
示例3: ExecXMoney
function ExecXMoney()
{
CheckSistema();
ExecWizard();
ExecLogin();
ExecJanelaPrincipal();
Gtk::main();
}
示例4: init
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();
}
示例5: pocitajtb
}
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()
示例6: frmDemo_onload
/**
* Método do carregamento do formulario
*
* @name frmDemo_onload()
*/
public function frmDemo_onload()
{
// Inicia a aplicação
$this->widgets['frmDemo']->show_all();
Gtk::main();
}
示例7: iniciarGUI
public function iniciarGUI()
{
Gtk::main();
}
示例8: run
/**
* Shows application window and enters main loop.
*
*/
public function run()
{
$this->window->show_all();
Gtk::main();
}
示例9: exec
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));
}
示例10: __request_info
/**
* 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);
}