当前位置: 首页>>代码示例>>PHP>>正文


PHP Gtk::main方法代码示例

本文整理汇总了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();
 }
开发者ID:Kuroesu,项目名称:campo-minado-plp,代码行数:7,代码来源:telaCampo.php

示例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();
 }
开发者ID:BGCX067,项目名称:fabulafw-svn-to-git,代码行数:13,代码来源:ADOdbConnection.php

示例3: ExecXMoney

function ExecXMoney()
{
    CheckSistema();
    ExecWizard();
    ExecLogin();
    ExecJanelaPrincipal();
    Gtk::main();
}
开发者ID:eneiasramos,项目名称:xmoney,代码行数:8,代码来源:xmoney.php

示例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();
 }
开发者ID:skyview059,项目名称:puremvc-php-demo-gtk-employeeadmin,代码行数:12,代码来源:LayoutComponent.php

示例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()
开发者ID:sorgo,项目名称:agilityregister,代码行数:31,代码来源:casomieragtk.php

示例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();
 }
开发者ID:BGCX067,项目名称:fabulafw-svn-to-git,代码行数:11,代码来源:GtkEntry.php

示例7: iniciarGUI

 public function iniciarGUI()
 {
     Gtk::main();
 }
开发者ID:Kuroesu,项目名称:campo-minado-plp,代码行数:4,代码来源:telaEscolha.php

示例8: run

 /**
  * Shows application window and enters main loop.
  *
  */
 public function run()
 {
     $this->window->show_all();
     Gtk::main();
 }
开发者ID:Gamepay,项目名称:xp-contrib,代码行数:9,代码来源:GtkApplication.class.php

示例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));
 }
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:53,代码来源:class.uietemplate_gtk.inc.php

示例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);
 }
开发者ID:BGCX067,项目名称:fabulafw-svn-to-git,代码行数:19,代码来源:FFWVideo.widget.php


注:本文中的Gtk::main方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。