Utility Functions#
Support for GemViz.
|
UI file name matches the Python file, different extension. |
|
Convert ISO8601 time string to datetime object. |
|
Convert ISO8601 time string to timestamp. |
|
Load a .ui file for use in building a GUI. |
|
Remove all existing widgets from QLayout. |
|
(decorator) run |
|
Convert timestamp to datetime object. |
|
Convert timestamp to ISO8601 time string. |
- gemviz.utils.getUiFileName(py_file_name)[source]#
UI file name matches the Python file, different extension.
- gemviz.utils.myLoadUi(ui_file, baseinstance=None, **kw)[source]#
Load a .ui file for use in building a GUI.
Wraps uic.loadUi() with code that finds our program’s resources directory.
inspired by: http://stackoverflow.com/questions/14892713/how-do-you-load-ui-files-onto-python-classes-with-pyside?lq=1