utils Module

Module with some helper functions

nodeeditor.utils.pp(object)

Shortcut function for PrettyPrinter.pprint() method. Already instantiated and with indentation set to 4 spaces

nodeeditor.utils.dumpException(e=None)

Prints out an Exception message with a traceback to the console

Parameters

e (Exception) – Exception to print out

nodeeditor.utils.loadStylesheet(filename: str)

Loads an qss stylesheet to the current QApplication instance

Parameters

filename (str) – Filename of qss stylesheet

nodeeditor.utils.loadStylesheets(*args)

Loads multiple qss stylesheets. Concatenates them together and applies the final stylesheet to the current QApplication instance

Parameters

args (str, str,..) – variable number of filenames of qss stylesheets