diff options
| author | tassaron | 2017-06-24 23:12:41 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-24 23:12:41 -0400 |
| commit | e32ba958cb95146728d4985221b08c7e01b35470 (patch) | |
| tree | 1fce99082617a5a92a758851e51c32999774d212 /src/components/__base__.py | |
| parent | 4d955c5a06d8d77c968f594a85b71b516919bcfb (diff) | |
fixing bugs
Diffstat (limited to 'src/components/__base__.py')
| -rw-r--r-- | src/components/__base__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/__base__.py b/src/components/__base__.py index 9b7b958..84d41c8 100644 --- a/src/components/__base__.py +++ b/src/components/__base__.py @@ -1,4 +1,4 @@ -from PyQt5 import QtGui, QtCore, QtWidgets +from PyQt5 import uic, QtGui, QtCore, QtWidgets from PIL import Image import os @@ -114,6 +114,9 @@ class Component(QtCore.QObject): except: return (255, 255, 255) + def loadUi(self, filename): + return uic.loadUi(os.path.join(self.core.componentsPath, filename)) + ''' ### Reference methods for creating a new component ### (Inherit from this class and define these) |
