Bearsampp
2025.8.29
Loading...
Searching...
No Matches
class.tpl.app.python.php
Go to the documentation of this file.
1
<?php
2
/*
3
*
4
* * Copyright (c) 2021-2024 Bearsampp
5
* * License: GNU General Public License version 3 or later; see LICENSE.txt
6
* * Website: https://bearsampp.com
7
* * Github: https://github.com/Bearsampp
8
*
9
*/
10
18
class
TplAppPython
19
{
20
// Constant for the Python menu identifier
21
const
MENU
=
'python'
;
22
30
public
static
function
process
()
31
{
32
global
$bearsamppLang
;
33
34
return
TplApp::getMenu
(
$bearsamppLang
->getValue(
Lang::PYTHON
), self::MENU, get_called_class());
35
}
36
45
public
static
function
getMenuPython
()
46
{
47
global
$bearsamppLang
, $bearsamppTools;
48
49
// Generate menu item for Python console
50
$resultItems =
TplAestan::getItemConsoleZ
(
51
$bearsamppLang
->getValue(
Lang::PYTHON_CONSOLE
),
52
TplAestan::GLYPH_PYTHON
,
53
$bearsamppTools->getConsoleZ()->getTabTitlePython()
54
) . PHP_EOL;
55
56
// Generate menu item for Python IDLE
57
$resultItems .=
TplAestan::getItemExe
(
58
$bearsamppLang
->getValue(
Lang::PYTHON
) .
' IDLE'
,
59
$bearsamppTools->getPython()->getIdleExe(),
60
TplAestan::GLYPH_PYTHON
61
) . PHP_EOL;
62
63
return
$resultItems;
64
}
65
}
$bearsamppLang
global $bearsamppLang
Definition
ajax.apache.php:16
Lang\PYTHON_CONSOLE
const PYTHON_CONSOLE
Definition
class.lang.php:60
Lang\PYTHON
const PYTHON
Definition
class.lang.php:148
TplAestan\getItemExe
static getItemExe($caption, $exe, $glyph, $params=null)
Definition
class.tpl.aestan.php:220
TplAestan\GLYPH_PYTHON
const GLYPH_PYTHON
Definition
class.tpl.aestan.php:90
TplAestan\getItemConsoleZ
static getItemConsoleZ($caption, $glyph, $id=null, $title=null, $initDir=null, $command=null)
Definition
class.tpl.aestan.php:141
TplApp\getMenu
static getMenu($caption, $menu, $class)
Definition
class.tpl.app.php:190
TplAppPython
Definition
class.tpl.app.python.php:19
TplAppPython\MENU
const MENU
Definition
class.tpl.app.python.php:21
TplAppPython\process
static process()
Definition
class.tpl.app.python.php:30
TplAppPython\getMenuPython
static getMenuPython()
Definition
class.tpl.app.python.php:45
Bearsampp-development
sandbox
core
classes
tpls
app
class.tpl.app.python.php
Generated by
1.14.0