aboutsummaryrefslogtreecommitdiff
path: root/src/components/image.py
diff options
context:
space:
mode:
authortassaron2017-06-24 23:12:41 -0400
committertassaron2017-06-24 23:12:41 -0400
commite32ba958cb95146728d4985221b08c7e01b35470 (patch)
tree1fce99082617a5a92a758851e51c32999774d212 /src/components/image.py
parent4d955c5a06d8d77c968f594a85b71b516919bcfb (diff)
fixing bugs
Diffstat (limited to 'src/components/image.py')
-rw-r--r--src/components/image.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/components/image.py b/src/components/image.py
index 3517af6..143ae59 100644
--- a/src/components/image.py
+++ b/src/components/image.py
@@ -1,5 +1,5 @@
from PIL import Image, ImageDraw
-from PyQt5 import uic, QtGui, QtCore, QtWidgets
+from PyQt5 import QtGui, QtCore, QtWidgets
import os
from . import __base__
@@ -12,8 +12,7 @@ class Component(__base__.Component):
def widget(self, parent):
self.parent = parent
self.settings = parent.settings
- page = uic.loadUi(os.path.join(
- os.path.dirname(os.path.realpath(__file__)), 'image.ui'))
+ page = self.loadUi('image.ui')
self.imagePath = ''
self.x = 0
self.y = 0