eric6.Globals.__init__

Module defining common data to be used by all modules.

Global Attributes

configDir
recentNameFiles
recentNameHexFiles
recentNameHosts
recentNameMultiProject
recentNameProject
settingsNameGlobal
settingsNameOrganization
settingsNameRecent

Classes

None

Functions

checkBlacklistedVersions Module functions to check for blacklisted versions of the prerequisites.
findPythonInterpreters Module function for searching a Python interpreter.
getConfigDir Module function to get the name of the directory storing the config data.
getPyQt5ModulesDirectory Function to determine the path to PyQt5's (or PyQt4's) modules directory.
getPythonModulesDirectory Function to determine the path to Python's modules directory.
getQtBinariesPath Module function to get the path of the Qt binaries.
isLinuxPlatform Function to check, if this is a Linux platform.
isMacPlatform Function to check, if this is a Mac platform.
isWindowsPlatform Function to check, if this is a Windows platform.
setConfigDir Module function to set the name of the directory storing the config data.
strGroup Module function to group a string into sub-strings separated by a separator.
toBool Module function to convert a value to bool.
toByteArray Module function to convert a value to a byte array.
toDict Module function to convert a value to a dictionary.
toList Module function to convert a value to a list.
translate Module function to handle different PyQt 4/5 QCoreApplication.translate parameter.


checkBlacklistedVersions

checkBlacklistedVersions()

Module functions to check for blacklisted versions of the prerequisites.

Returns:
flag indicating good versions were found (boolean)
Up


findPythonInterpreters

findPythonInterpreters(pyVersion)

Module function for searching a Python interpreter.

pyVersion
major Python version
Returns:
list of interpreters found (list of strings)
Up


getConfigDir

getConfigDir()

Module function to get the name of the directory storing the config data.

Returns:
directory name of the config dir (string)
Up


getPyQt5ModulesDirectory

getPyQt5ModulesDirectory()

Function to determine the path to PyQt5's (or PyQt4's) modules directory.

Returns:
path to the PyQt5/PyQt4 modules directory (string)
Up


getPythonModulesDirectory

getPythonModulesDirectory()

Function to determine the path to Python's modules directory.

Returns:
path to the Python modules directory (string)
Up


getQtBinariesPath

getQtBinariesPath()

Module function to get the path of the Qt binaries.

Returns:
path of the Qt binaries (string)
Up


isLinuxPlatform

isLinuxPlatform()

Function to check, if this is a Linux platform.

Returns:
flag indicating Linux platform (boolean)
Up


isMacPlatform

isMacPlatform()

Function to check, if this is a Mac platform.

Returns:
flag indicating Mac platform (boolean)
Up


isWindowsPlatform

isWindowsPlatform()

Function to check, if this is a Windows platform.

Returns:
flag indicating Windows platform (boolean)
Up


setConfigDir

setConfigDir(d)

Module function to set the name of the directory storing the config data.

d
name of an existing directory (string)
Up


strGroup

strGroup(txt, sep, groupLen=4)

Module function to group a string into sub-strings separated by a separator.

txt (str)
text to be grouped
sep (str)
separator string
groupLen (int)
length of each group
Returns:
result string
Return Type:
str
Up


toBool

toBool(value)

Module function to convert a value to bool.

value
value to be converted
Returns:
converted data
Up


toByteArray

toByteArray(value)

Module function to convert a value to a byte array.

value
value to be converted
Returns:
converted data
Up


toDict

toDict(value)

Module function to convert a value to a dictionary.

value
value to be converted
Returns:
converted data
Up


toList

toList(value)

Module function to convert a value to a list.

value
value to be converted
Returns:
converted data
Up


translate

translate(*args)

Module function to handle different PyQt 4/5 QCoreApplication.translate parameter.

args
tuple of arguments from QCoreApplication.translate (tuple)
Returns:
translated string (string)
Up