maxon.Application¶
Description¶
Inheritance diagram¶
Methods Signature¶
Retrieves the current application mode.
|
|
|
Returns a command line argument. |
Returns the number of command line arguments delivered to the app on startup. |
|
Returns information about the system and processor.
|
|
Returns all module paths configured through g_modulePath, g_additionalModulePath and user preferences. |
|
|
Returns a new unique
maxon.Url for a temporary file. |
|
Returns the requested |
Returns information about the subsystem of the application. |
|
|
Sets a new application mode. This mode defines the behavior after the startup is done.
|
Methods Definition¶
-
static
Application.GetApplicationMode()¶ - Retrieves the current application mode.This mode defines the behavior after after the startup is done.
- Returns
The current application mode.
- Return type
maxon.APPLICATIONMODE
-
static
Application.GetCommandLineArg(idx)¶ Returns a command line argument.
- Parameters
idx (int) – The index of the argument. (0 >= idx < GetCommandLineArgCount()).
- Returns
The requested argument.
- Return type
str
-
static
Application.GetCommandLineArgCount()¶ Returns the number of command line arguments delivered to the app on startup.
- Returns
Number of arguments to request via
Application.GetCommandLineArg().- Return type
int
-
static
Application.GetMachineInfo()¶ - Returns information about the system and processor.See
maxon.MACHINEINFOformaxon.DataDictionaryproperties.- Returns
System and processor information.
- Return type
-
static
Application.GetModulePaths()¶ Returns all module paths configured through g_modulePath, g_additionalModulePath and user preferences.
- Returns
Array containing all paths that are searched for modules.
- Return type
-
static
Application.GetTempUrl(directory)¶ - Returns a new unique
maxon.Urlfor a temporary file.A typical use for this istempfile = maxon.Application.GetTempUrl(maxon.Application.GetUrl(maxon.APPLICATION_URLTYPE.TEMP_DIR))
-
static
Application.GetUrl()¶ Returns the requested
maxon.Url.tempfile = maxon.Application.GetUrl(maxon.APPLICATION_URLTYPE.TEMP_DIR))
-
static
Application.GetWindowsSubsystem()¶ Returns information about the subsystem of the application.
Warning
This method is only available on Windows.
- Returns
The current subsystem of the current process.
- Return type
maxon.SUBSYSTEM
-
static
Application.SetApplicationMode(mode)¶ - Sets a new application mode. This mode defines the behavior after the startup is done.Please note that it’s only possible to raise the mode from
maxon.APPLICATIONMODE.DONTWAITtomaxon.APPLICATIONMODE.KEEPRUNNING.- Parameters
mode (
maxon.APPLICATIONMODE) – The new mode to be set.- Returns
True if the function changed the mode successfully.
- Return type
bool