Example #1
0
 def set_widgets(self):
     color_label(self.title, QColor("black"), QColor("white"))
     color_button(self.show, QColor(255, 255, 0))
     color_button(self.clr, QColor(255, 0, 0))
     color_button(self.full, QColor(255, 0, 0))
     color_button(self.gen, QColor(255, 0, 0))
     color_button(self.addV, QColor(0, 255, 0))
     color_button(self.clrV, QColor(0, 255, 0))
Example #2
0
 def set_widgets(self):
     color_label(self.title, QColor("black"), QColor("white"))
     color_button(self.fix, QColor(0, 255, 0))
     color_button(self.fixO, QColor(0, 255, 0))
     color_button(self.updown, QColor(0, 255, 0))
     color_button(self.fat, QColor(255, 255, 0))
     color_button(self.shwA, QColor(255, 255, 0))
     color_button(self.shwU, QColor(255, 255, 0))
     color_button(self.shwN, QColor(255, 255, 0))
Example #3
0
 def set_widgets(self):
     color_label(self.title, QColor("black"), QColor("white"))
     color_button(self.set1, QColor(255, 0, 0))
     color_button(self.set5, QColor(255, 0, 0))
     color_button(self.set6, QColor(255, 0, 0))
     color_button(self.set7, QColor(255, 0, 0))
     color_button(self.set8, QColor(255, 0, 0))
     color_button(self.shwA, QColor(255, 255, 0))
     color_button(self.shwS, QColor(255, 255, 0))
     color_button(self.shwN, QColor(255, 255, 0))
     color_button(self.clr, QColor(255, 0, 0))
Example #4
0
    def create_widgets(self):
        self.title = QLabel("* Polygons *")
        color_label(self.title, QColor("black"), QColor("white"))

        self.pp = QPushButton("comp")
        self.ppclear = QPushButton("clear")
        self.ppuse = QPushButton("use")
        self.ppprev = QPushButton("prev")
        self.ppnext = QPushButton("next")
        self.ppshow = QPushButton("show")
        self.ppvis = QPushButton("getvis")
Example #5
0
    def create_widgets(self):
        self.title = QLabel("* Parameters *")
        color_label(self.title, QColor("black"), QColor("white"))

        self.resetButton = QPushButton("reset")
        self.add_remove = QPushButton("add")
        self.protect_overwrite = QPushButton("protect")

        self.ocde = QPushButton("open")
        self.xy = QPushButton("xy")

        self.vonly = QPushButton("vis only")
Example #6
0
    def set_widgets(self):
        color_label(self.title,QColor("black"),QColor("white"))
        color_button(self.fixGA,QColor(0,255,0))
        color_button(self.fixHA,QColor(0,255,0))
        color_button(self.fixGU,QColor(0,255,0))
        color_button(self.fixHU,QColor(0,255,0))
        color_button(self.fat,QColor(255,255,0))
        color_button(self.shwA,QColor(255,255,0))
        color_button(self.shwU,QColor(255,255,0))
        color_button(self.shwN,QColor(255,255,0))

        color_button(self.shwG,QColor(255,255,0))
        color_button(self.hidG,QColor(255,255,0))
        color_button(self.fatG,QColor(255,255,0))
        color_button(self.shwH,QColor(255,255,0))
        color_button(self.hidH,QColor(255,255,0))
        color_button(self.fatH,QColor(255,255,0))

        color_button(self.fixB,QColor(0,255,0))
        color_button(self.hidB,QColor(255,255,0))
        color_button(self.shwB,QColor(255,255,0))
        color_button(self.fatB,QColor(255,255,0))

        color_button(self.labB,QColor(255,255,0))
        color_button(self.labG,QColor(255,255,0))
        color_button(self.labH,QColor(255,255,0))


        self.fat.setCheckable(True)
        self.fatG.setCheckable(True)
        self.fatH.setCheckable(True)
        self.fatB.setCheckable(True)

        self.maxB.setMinimum(0)
        self.maxB.setValue(4)
        self.maxB.setMaximum(40)

        self.maxBB.setMinimum(10)
        self.maxBB.setValue(1000)
        self.maxBB.setMaximum(1000000000)

        self.maxG.setMinimum(1)
        self.maxG.setMaximum(10000)
        self.maxH.setMinimum(1)
        self.maxH.setMaximum(10000)
        self.maxG.setValue(9)
        self.maxH.setValue(9)
Example #7
0
    def __init__(self, title, n):
        super(EditW, self).__init__()

        self.title = QLabel(title)
        self.title.setMaximumHeight(40)
        if title == title.upper():
            color_label(self.title, QColor("red"), QColor("white"))
        else:
            color_label(self.title, QColor("black"), QColor("white"))
        self.clear = QPushButton("clear")
        self.edits = QListWidget()
        self.edits.setMaximumHeight(24 * n)
        self.edits.setAlternatingRowColors(True)
        self.addWidget(self.title, 0, 0, 1, 7)
        self.addWidget(self.clear, 0, 7)
        self.addWidget(self.edits, 2, 0, 1, 8)

        self.clear.clicked.connect(self.edits.clear)
Example #8
0
    def set_widgets(self):
        color_label(self.title, QColor("black"), QColor("white"))
        color_button(self.undo, QColor(255, 0, 0))
        color_button(self.redo, QColor(255, 0, 0))
        color_button(self.simp, QColor(255, 0, 0))

        color_button(self.cla1, QColor(0, 255, 0))
        color_button(self.clu1, QColor(0, 255, 0))

        color_button(self.opa1, QColor(0, 255, 0))
        color_button(self.opu1, QColor(0, 255, 0))

        #color_button(self.shwgomi,QColor(255,255,0))
        #color_button(self.fatgomi,QColor(255,255,0))
        #color_button(self.clrgomi,QColor(255,255,0))

        #color_button(self.visrst,QColor(0,255,0))

        color_button(self.gauss, QColor(0, 255, 0))
        color_button(self.wa_gauss, QColor(0, 0, 255))
        color_button(self.unfilter, QColor(255, 0, 0))

        self.fatgomi.setCheckable(True)
        self.shape.setCheckable(True)

        color_button(self.modA, QColor(0, 255, 0))
        color_button(self.modU, QColor(0, 255, 0))
        color_button(self.modcbA, QColor(0, 255, 0))
        color_button(self.modcbU, QColor(0, 255, 0))
        self.dist.setMinimum(1)
        self.dist.setValue(2)
        self.dist.setMaximum(15)

        self.sigma.setMinimum(1)
        self.sigma.setMaximum(10000)

        self.close.setMinimum(1)
        self.close.setMaximum(100)
        self.modR.setMinimum(1)
        self.modR.setMaximum(100)

        self.sigma.setValue(5)
        self.modR.setValue(3)
        self.close.setValue(3)
Example #9
0
    def create_widgets(self):
        self.title = QLabel("* Selection *")
        color_label(self.title, QColor("black"), QColor("white"))
        self.resetButton = QPushButton("Reset")

        self.bgLabel = QLabel("color scheme")
        self.bg = QButtonGroup()
        self.rgb = QRadioButton("rgb")
        self.hsv = QRadioButton("hsv")
        self.hsx = QRadioButton("hs")
        self.bg.addButton(self.rgb)
        self.bg.addButton(self.hsv)
        self.bg.addButton(self.hsx)

        self.para1Label = QLabel("Parameter 1 (Red/Hue)")
        self.min1 = QSpinBox()
        self.del1 = QSpinBox()
        self.max1 = QSpinBox()
        self.min1Label = QLabel("min")
        self.del1Label = QLabel("del")
        self.max1Label = QLabel("max")

        self.para2Label = QLabel("Parameter 2 (Green/Saturation)")
        self.min2 = QSpinBox()
        self.del2 = QSpinBox()
        self.max2 = QSpinBox()
        self.min2Label = QLabel("min")
        self.del2Label = QLabel("del")
        self.max2Label = QLabel("max")

        self.para3Label = QLabel("Parameter 3 (Blue/Value)")
        self.min3 = QSpinBox()
        self.del3 = QSpinBox()
        self.max3 = QSpinBox()
        self.min3Label = QLabel("min")
        self.del3Label = QLabel("del")
        self.max3Label = QLabel("max")