|
def | pycross.utils.utils.is_iterable (obj) |
| Checks if a given object is iterable (i.e. More...
|
|
def | pycross.utils.utils.getosname () |
| Gets the current OS (platform) name. More...
|
|
def | pycross.utils.utils.generate_uuid () |
| Generates a random UUID (alphanumeric string). More...
|
|
def | pycross.utils.utils.copy_file (path_from, path_to) |
| Copies a file into another location. More...
|
|
def | pycross.utils.utils.walk_dir (root_path, abs_path=True, recurse=True, dir_process_function=None, file_process_function=None, file_types=None) |
| Iterates the files and folder in a given folder, performing some operations on the found files / folders. More...
|
|
def | pycross.utils.utils.run_exe (args, external=False, capture_output=True, stdout=subprocess.PIPE, encoding=ENCODING, timeout=None, shell=False, **kwargs) |
| Runs an executable and optionally returns the result. More...
|
|
def | pycross.utils.utils.datetime_to_str (dt=None, strformat='%Y-%m-%d %H-%M-%S') |
| Converts a Python datetime object to a string. More...
|
|
def | pycross.utils.utils.timestamp_to_str (ts=None, strformat='%Y-%m-%d %H-%M-%S') |
| Converts a timestamp (Unix time) to a string. More...
|
|
def | pycross.utils.utils.str_to_datetime (text, strformat='%Y-%m-%d %H-%M-%S') |
| Converts a string to a Python datetime object. More...
|
|
def | pycross.utils.utils.str_to_timestamp (text, strformat='%Y-%m-%d %H-%M-%S') |
| Converts a string to a timestamp (Unix time). More...
|
|
def | pycross.utils.utils.get_tempdir () |
| Gets the path to the Temp directory on the system. More...
|
|
def | pycross.utils.utils.bytes_human (value, suffix='B') |
| Returns a human-formatted file size as a string, e.g. More...
|
|
def | pycross.utils.utils.restart_app (closefunction) |
| Restarts this app. More...
|
|
def | pycross.utils.utils.file_types_registered (filetypes=('xpf', 'ipuz', 'pxjson')) |
| Checks if the given file type associations are registered in the OS. More...
|
|
def | pycross.utils.utils.register_file_types (filetypes=('xpf', 'ipuz', 'pxjson'), register=True) |
| Registers file associations in the current OS for the given file types and application. More...
|
|
def | pycross.utils.utils.make_font (family, size=-1, weight=-1, italic=False, font_unit='pt') |
|
def | pycross.utils.utils.MsgBox (what, parent=None, title='pyCross', msgtype='info', btn=None, detailedText='', infoText='', execnow=True) |
|
def | pycross.utils.utils.UserInput (dialogtype='text', parent=None, title='pyCross', label='', value=None, textmode='normal', valrange=None, decimals=1, step=1, comboeditable=True, comboitems=[]) |
|
def | pycross.utils.utils.clipboard_copy (value, valtype='text') |
|
def | pycross.utils.utils.clipboard_get (valtype='text') |
|
def | pycross.utils.utils.clipboard_clear () |
|
def | pycross.utils.utils.stylesheet_load (style, dequote=True, strip_sz=True, units=('pt', 'px')) |
|
def | pycross.utils.utils.stylesheet_dump (d, quoted_keys=('font-family',), add_units={ 'font-size':'pt', 'border':'px', 'border-width':'px'}) |
|
def | pycross.utils.utils.font_weight_css2qt (weight, default=0) |
|
def | pycross.utils.utils.font_weight_qt2css (weight, default=0) |
|
def | pycross.utils.utils.font_from_stylesheet (style, font_unit='pt', default_font=None) |
|
def | pycross.utils.utils.font_to_stylesheet (font, style, font_unit='pt') |
|
def | pycross.utils.utils.color_from_stylesheet (style, tag='background-color', default='black') |
|
def | pycross.utils.utils.color_to_stylesheet (color, style, tag='background-color') |
|
def | pycross.utils.utils.property_to_stylesheet (propname, propvalue, style) |
|
def | pycross.utils.utils.property_from_stylesheet (propname, style, default=None) |
|