tkinter.tix.tixCommand.tix_getimage()

tixCommand.tix_getimage(self, name) Locates an image file of the name name.xpm, name.xbm or name.ppm in one of the bitmap directories (see the tix_addbitmapdir() method above). If more than one file with the same name (but different extensions) exist, then the image type is chosen according to the depth of the X display: xbm images are chosen on monochrome displays and color images are chosen on color displays. By using tix_getimage(), you can avoid hard coding the pathnames of the image fil

ossaudiodev.oss_mixer_device.get_recsrc()

oss_mixer_device.get_recsrc() This method returns a bitmask indicating which control(s) are currently being used as a recording source.

statistics.pvariance()

statistics.pvariance(data, mu=None) Return the population variance of data, a non-empty iterable of real-valued numbers. Variance, or second moment about the mean, is a measure of the variability (spread or dispersion) of data. A large variance indicates that the data is spread out; a small variance indicates it is clustered closely around the mean. If the optional second argument mu is given, it should be the mean of data. If it is missing or None (the default), the mean is automatically ca

venv.EnvBuilder

class venv.EnvBuilder(system_site_packages=False, clear=False, symlinks=False, upgrade=False, with_pip=False) The EnvBuilder class accepts the following keyword arguments on instantiation: system_site_packages – a Boolean value indicating that the system Python site-packages should be available to the environment (defaults to False). clear – a Boolean value which, if true, will delete the contents of any existing target directory, before creating the environment. symlinks – a Boolean valu

asyncio.AbstractEventLoop.call_soon()

AbstractEventLoop.call_soon(callback, *args) Arrange for a callback to be called as soon as possible. The callback is called after call_soon() returns, when control returns to the event loop. This operates as a FIFO queue, callbacks are called in the order in which they are registered. Each callback will be called exactly once. Any positional arguments after the callback will be passed to the callback when it is called. An instance of asyncio.Handle is returned, which can be used to cancel t

csv.writer()

csv.writer(csvfile, dialect='excel', **fmtparams) Return a writer object responsible for converting the user’s data into delimited strings on the given file-like object. csvfile can be any object with a write() method. If csvfile is a file object, it should be opened with newline='' [1]. An optional dialect parameter can be given which is used to define a set of parameters specific to a particular CSV dialect. It may be an instance of a subclass of the Dialect class or one of the strings ret

sys.setprofile()

sys.setprofile(profilefunc) Set the system’s profile function, which allows you to implement a Python source code profiler in Python. See chapter The Python Profilers for more information on the Python profiler. The system’s profile function is called similarly to the system’s trace function (see settrace()), but it isn’t called for each executed line of code (only on call and return, but the return event is reported even when an exception has been set). The function is thread-specific, but

shutil.get_terminal_size()

shutil.get_terminal_size(fallback=(columns, lines)) Get the size of the terminal window. For each of the two dimensions, the environment variable, COLUMNS and LINES respectively, is checked. If the variable is defined and the value is a positive integer, it is used. When COLUMNS or LINES is not defined, which is the common case, the terminal connected to sys.__stdout__ is queried by invoking os.get_terminal_size(). If the terminal size cannot be successfully queried, either because the syste

threading.BoundedSemaphore

class threading.BoundedSemaphore(value=1) Class implementing bounded semaphore objects. A bounded semaphore checks to make sure its current value doesn’t exceed its initial value. If it does, ValueError is raised. In most situations semaphores are used to guard resources with limited capacity. If the semaphore is released too many times it’s a sign of a bug. If not given, value defaults to 1. Changed in version 3.3: changed from a factory function to a class.

curses.window.getstr()

window.getstr([y, x]) Read a string from the user, with primitive line editing capacity.