A set of multi-purpose tools.
This module provides a handful of broadly-applicable functions for formatting, and parsing. It also provides some general-purpose classes which are not entirely necessary, but which are often helpful, for the functioning of the software.
A container for runtime-specified commands.
In many situations in this software, there arise situations in which one of the core classes needs to send output back to some graphical entity. This class provides a container in which the graphical objects can store some method or function which the core class will execute at the appropriate time.
Parameters : | method : method or function
args : positional arguments
kwargs : keyword arguments
|
---|
Methods
Return a list representing a range where the inputs can be floats.
Parameters : | start : float
end : float
inc : float
includeEnd : bool
|
---|---|
Returns : | list(float) :
|
Create a generator producing a range where the inputs can be floats.
Split a comma-separated string of numbers into a list of floats.
Take a string consisting of floating-point or integer numbers separated by commas, split the string at the commas, and cast all of the numbers to floats. All segments which cannot be cast to a float will be ignored.
Parameters : | text : str
|
---|---|
Returns : | list(float) :
|
Return a heading string formatted as reStructuredText.
Parameters : | heading : str
level : int
|
---|---|
Returns : | str :
|
Return the number of rows and columns needed to display elements neatly.
Given a specified number of items, determine an acceptable way to arrange them in a grid. The algorithm attempts to keep the grid as square as possible, subject to the condition that the number of columns is always greater than or equal to the number of rows.
Parameters : | num : int
|
---|---|
Returns : | tuple (int, int) :
|
Convert a multi-line string to a list of strings.
Parameters : | string : str
removeBlanks : bool
|
---|---|
Returns : | list of str :
|
Present a user with options.
Parameters : | string : str
choices : list of str
|
---|---|
Returns : | int :
|
Perform a simple linear regression on data.
Parameters : | xPoints : list of float
yPoints : list of float
|
---|---|
Returns : | float :
float :
float :
float :
float :
|