aboutsummaryrefslogtreecommitdiff
path: root/src/components/color.py
diff options
context:
space:
mode:
authortassaron2017-07-17 22:07:33 -0400
committertassaron2017-07-17 22:07:33 -0400
commitb1713d38fa91e39f142b0c234b6405229aa149e1 (patch)
tree3c47e147512cd75deccf07b2591fbb26693ffcb6 /src/components/color.py
parentaa464632c64725201dc7584ebf6bf2c3d06b47b6 (diff)
combined toolkit.py & frame.py into toolkit package
Diffstat (limited to 'src/components/color.py')
-rw-r--r--src/components/color.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/components/color.py b/src/components/color.py
index ef4dd95..8d2526d 100644
--- a/src/components/color.py
+++ b/src/components/color.py
@@ -5,7 +5,8 @@ from PIL.ImageQt import ImageQt
import os
from component import Component
-from frame import BlankFrame, FloodFrame, FramePainter, PaintColor
+from toolkit.frame import BlankFrame, FloodFrame, FramePainter, PaintColor
+from toolkit import rgbFromString, pickColor
class Component(Component):
@@ -76,8 +77,8 @@ class Component(Component):
return page
def update(self):
- self.color1 = self.RGBFromString(self.page.lineEdit_color1.text())
- self.color2 = self.RGBFromString(self.page.lineEdit_color2.text())
+ self.color1 = rgbFromString(self.page.lineEdit_color1.text())
+ self.color2 = rgbFromString(self.page.lineEdit_color2.text())
self.x = self.page.spinBox_x.value()
self.y = self.page.spinBox_y.value()
self.sizeWidth = self.page.spinBox_width.value()
@@ -229,7 +230,7 @@ class Component(Component):
}
def pickColor(self, num):
- RGBstring, btnStyle = super().pickColor()
+ RGBstring, btnStyle = pickColor()
if not RGBstring:
return
if num == 1: