Esempio n. 1
0
    def __init__(self, win_size=256, img_size=256):
        QWidget.__init__(self)

        self.win_size = win_size
        self.img_size = img_size

        self.drawWidget = GANGATEDraw(win_size=self.win_size,
                                      img_size=self.img_size)
        self.drawWidget.setFixedSize(win_size, win_size)

        self.visWidget = GANGATEVis(win_size=self.win_size,
                                    img_size=self.img_size)
        self.visWidget.setFixedSize(win_size, win_size)

        vbox = QVBoxLayout()

        self.drawWidgetBox = QGroupBox()
        self.drawWidgetBox.setTitle('Drawing Pad')
        vbox_t = QVBoxLayout()
        vbox_t.addWidget(self.drawWidget)
        self.drawWidgetBox.setLayout(vbox_t)
        vbox.addWidget(self.drawWidgetBox)

        self.labelId = 0

        self.bGenerate = QPushButton('Generate')
        self.bGenerate.setToolTip(
            "This button generates the final image to render")

        self.bReset = QPushButton('Reset')
        self.bReset.setToolTip("This button resets the drawing pad !")

        self.bRandomize = QPushButton('Dice')
        self.bRandomize.setToolTip(
            "This button generates new set of generations the drawing pad !")

        self.bMoveStroke = QRadioButton('Move Stroke')
        self.bMoveStroke.setToolTip("This button resets the drawing pad !")

        self.bWarpStroke = QRadioButton('Warp Stroke')
        self.bWarpStroke.setToolTip("This button resets the drawing pad !")

        self.bDrawStroke = QRadioButton('Draw Stroke')
        self.bDrawStroke.setToolTip("This button resets the drawing pad !")

        hbox = QHBoxLayout()
        hbox.addLayout(vbox)

        vbox3 = QVBoxLayout()
        self.visWidgetBox = QGroupBox()
        self.visWidgetBox.setTitle('Generations')

        vbox_t3 = QVBoxLayout()
        vbox_t3.addWidget(self.visWidget)
        self.visWidgetBox.setLayout(vbox_t3)
        vbox3.addWidget(self.visWidgetBox)

        bhbox_controls = QGridLayout()
        bGroup_controls = QButtonGroup(self)

        bGroup_controls.addButton(self.bReset)
        bGroup_controls.addButton(self.bDrawStroke)
        bGroup_controls.addButton(self.bMoveStroke)
        bGroup_controls.addButton(self.bWarpStroke)

        bhbox_controls.addWidget(self.bReset, 0, 0)
        bhbox_controls.addWidget(self.bRandomize, 0, 1)
        bhbox_controls.addWidget(self.bDrawStroke, 0, 2)
        bhbox_controls.addWidget(self.bMoveStroke, 0, 3)
        bhbox_controls.addWidget(self.bWarpStroke, 0, 4)

        hbox.addLayout(vbox3)

        controlBox = QGroupBox()
        controlBox.setTitle('Controls')

        controlBox.setLayout(bhbox_controls)

        vbox_final = QVBoxLayout()
        vbox_final.addLayout(hbox)
        vbox_final.addWidget(controlBox)
        self.setLayout(vbox_final)

        self.bDrawStroke.setChecked(True)

        self.bGenerate.clicked.connect(self.generate)
        self.bReset.clicked.connect(self.reset)
        self.bRandomize.clicked.connect(self.randomize)
        self.bMoveStroke.clicked.connect(self.move_stroke)
        self.bWarpStroke.clicked.connect(self.warp_stroke)
        self.bDrawStroke.clicked.connect(self.draw_stroke)
    def __init__(self, win_size=384, img_size=384):
        QWidget.__init__(self)

        self.win_size = win_size
        self.img_size = img_size

        self.drawWidget = GANGATEDraw(win_size=self.win_size,
                                      img_size=self.img_size)
        self.drawWidget.setFixedSize(win_size, win_size)

        self.visWidget_color = GANGATEVis(win_size=self.win_size,
                                          img_size=self.img_size,
                                          disable_browser=True)
        self.visWidget_color.setFixedSize(win_size, win_size)

        vbox = QVBoxLayout()

        self.drawWidgetBox = QGroupBox()
        self.drawWidgetBox.setTitle('Drawing Pad')
        vbox_t = QVBoxLayout()
        vbox_t.addWidget(self.drawWidget)
        self.drawWidgetBox.setLayout(vbox_t)
        vbox.addWidget(self.drawWidgetBox)

        self.bGenerate = QPushButton('Generate !')
        self.bGenerate.setToolTip(
            "This button generates the final image to render")

        self.bReset = QPushButton('Reset')
        self.bReset.setToolTip("This button resets the drawing pad !")

        self.bRandomize = QPushButton('Dice')
        self.bRandomize.setToolTip(
            "This button generates new set of generations the drawing pad !")

        self.bMoveStroke = QRadioButton('Move Stroke')
        self.bMoveStroke.setToolTip(
            "This button moves the selected stroke on the drawing pad !")

        self.bWarpStroke = QRadioButton('Warp Stroke')
        self.bWarpStroke.setToolTip(
            "This button warps the selected stroke on the drawing pad !")

        self.bDrawStroke = QRadioButton('Draw Stroke')
        self.bDrawStroke.setToolTip(
            "This button reverts back to the drawing mode on the drawing pad !"
        )

        self.bSelectPatch = QRadioButton('Select Patch')
        self.bSelectPatch.setToolTip(
            "This button selects patches from the shadows!")

        self.bEnableShadows = QCheckBox('Enable Shadows')
        self.bEnableShadows.toggle()

        hbox = QHBoxLayout()
        hbox.addLayout(vbox)

        vbox4 = QVBoxLayout()
        self.visWidgetBox = QGroupBox()
        self.visWidgetBox.setTitle('Generations')

        vbox_t4 = QVBoxLayout()
        vbox_t4.addWidget(self.visWidget_color)
        self.visWidgetBox.setLayout(vbox_t4)
        vbox4.addWidget(self.visWidgetBox)

        hbox.addLayout(vbox4)

        bhbox_controls = QGridLayout()  #QHBoxLayout()

        bhbox_controls.addWidget(self.bReset, 0, 0)
        bhbox_controls.addWidget(self.bRandomize, 0, 1)
        bhbox_controls.addWidget(self.bDrawStroke, 0, 2)
        bhbox_controls.addWidget(self.bMoveStroke, 0, 3)
        bhbox_controls.addWidget(self.bWarpStroke, 0, 4)
        bhbox_controls.addWidget(self.bSelectPatch, 0, 5)
        bhbox_controls.addWidget(self.bEnableShadows, 0, 6)
        controlBox = QGroupBox()
        controlBox.setTitle('Controls')

        controlBox.setLayout(bhbox_controls)

        vbox_final = QVBoxLayout()
        vbox_final.addLayout(hbox)
        vbox_final.addWidget(controlBox)
        self.setLayout(vbox_final)

        self.bDrawStroke.setChecked(True)

        self.enable_shadow = True
        self.which_shadow_img = 0

        self.labelId = 0
        self.bGenerate.clicked.connect(self.generate)
        self.bReset.clicked.connect(self.reset)
        self.bRandomize.clicked.connect(self.randomize)
        self.bMoveStroke.clicked.connect(self.move_stroke)
        self.bWarpStroke.clicked.connect(self.warp_stroke)
        self.bDrawStroke.clicked.connect(self.draw_stroke)
        self.bSelectPatch.clicked.connect(self.select_patch)
        self.bEnableShadows.stateChanged.connect(self.toggle_shadow)
Esempio n. 3
0
    def __init__(self, win_size=384, img_size=384):
        QWidget.__init__(self)

        self.win_size = win_size
        self.img_size = img_size

        self.drawWidget = GANGATEDraw(win_size=self.win_size,
                                      img_size=self.img_size)
        self.drawWidget.setFixedSize(win_size, win_size)

        self.visWidget = GANGATEVis(win_size=self.win_size,
                                    img_size=self.img_size)
        self.visWidget.setFixedSize(win_size, win_size)

        vbox = QVBoxLayout()

        self.drawWidgetBox = QGroupBox()
        self.drawWidgetBox.setTitle('Drawing Pad')
        vbox_t = QVBoxLayout()
        vbox_t.addWidget(self.drawWidget)
        self.drawWidgetBox.setLayout(vbox_t)
        vbox.addWidget(self.drawWidgetBox)

        self.labelId = 0

        self.bBicycle = QRadioButton("Bicycle")
        self.bBicycle.setToolTip("This button enables generation of a Bicycle")

        self.bCat = QRadioButton("Cat")
        self.bCat.setToolTip("This button enables generation of a Cat")

        self.bChair = QRadioButton("Chair")
        self.bChair.setToolTip("This button enables generation of a Chair")

        self.bHamburger = QRadioButton("Hamburger")
        self.bHamburger.setToolTip(
            "This button enables generation of a Hamburger")

        self.bPizza = QRadioButton("Pizza")
        self.bPizza.setToolTip("This button enables generation of a Pizza")

        self.bTeddy = QRadioButton("Teddy")
        self.bTeddy.setToolTip("This button enables generation of a Teddy")

        bhbox = QGridLayout()

        bhbox.addWidget(self.bBicycle, 0, 0)
        bhbox.addWidget(self.bCat, 1, 0)
        bhbox.addWidget(self.bChair, 2, 0)
        bhbox.addWidget(self.bHamburger, 0, 1)
        bhbox.addWidget(self.bPizza, 1, 1)
        bhbox.addWidget(self.bTeddy, 2, 1)

        self.bGenerate = QPushButton('Generate !')
        self.bGenerate.setToolTip(
            "This button generates the final image to render")

        self.bReset = QPushButton('Reset !')
        self.bReset.setToolTip("This button resets the drawing pad !")

        self.bRandomize = QPushButton('Dice')
        self.bRandomize.setToolTip(
            "This button generates new set of generations the drawing pad !")

        self.bMoveStroke = QRadioButton('Move Stroke')
        self.bMoveStroke.setToolTip(
            "This button moves the selected stroke on the drawing pad !")

        self.bWarpStroke = QRadioButton('Warp Stroke')
        self.bWarpStroke.setToolTip(
            "This button warps the selected stroke on the drawing pad !")

        self.bDrawStroke = QRadioButton('Draw Stroke')
        self.bDrawStroke.setToolTip(
            "This button reverts back to the drawing mode on the drawing pad !"
        )

        self.bSelectPatch = QRadioButton('Select Patch')
        self.bSelectPatch.setToolTip(
            "This button selects patches from the shadows!")

        self.bEnableShadows = QCheckBox('Enable Shadows')
        self.bEnableShadows.toggle()

        hbox = QHBoxLayout()
        hbox.addLayout(vbox)

        vbox3 = QVBoxLayout()
        self.visWidgetBox = QGroupBox()
        self.visWidgetBox.setTitle('Generations')

        vbox_t3 = QVBoxLayout()
        vbox_t3.addWidget(self.visWidget)
        self.visWidgetBox.setLayout(vbox_t3)
        vbox3.addWidget(self.visWidgetBox)

        bhbox_controls = QGridLayout()

        bhbox_controls.addWidget(self.bReset, 0, 0)
        bhbox_controls.addWidget(self.bRandomize, 0, 1)
        bhbox_controls.addWidget(self.bDrawStroke, 0, 2)
        bhbox_controls.addWidget(self.bMoveStroke, 0, 3)
        bhbox_controls.addWidget(self.bWarpStroke, 0, 4)
        bhbox_controls.addWidget(self.bSelectPatch, 0, 5)
        bhbox_controls.addWidget(self.bEnableShadows, 0, 6)

        hbox.addLayout(vbox3)
        hbox.addLayout(bhbox)

        controlBox = QGroupBox()
        controlBox.setTitle('Controls')

        controlBox.setLayout(bhbox_controls)

        vbox_final = QVBoxLayout()
        vbox_final.addLayout(hbox)
        vbox_final.addWidget(controlBox)
        self.setLayout(vbox_final)

        self.bTeddy.setChecked(True)
        self.labelId = 5
        self.bDrawStroke.setChecked(True)

        self.enable_shadow = True
        self.which_shadow_img = 0

        self.bBicycle.clicked.connect(self.Bicycle)
        self.bCat.clicked.connect(self.Cat)
        self.bChair.clicked.connect(self.Chair)
        self.bHamburger.clicked.connect(self.Hamburger)
        self.bPizza.clicked.connect(self.Pizza)
        self.bTeddy.clicked.connect(self.Teddy)

        self.bGenerate.clicked.connect(self.generate)
        self.bReset.clicked.connect(self.reset)
        self.bRandomize.clicked.connect(self.randomize)
        self.bMoveStroke.clicked.connect(self.move_stroke)
        self.bWarpStroke.clicked.connect(self.warp_stroke)
        self.bDrawStroke.clicked.connect(self.draw_stroke)
        self.bSelectPatch.clicked.connect(self.select_patch)
        self.bEnableShadows.stateChanged.connect(self.toggle_shadow)
    def __init__(self, win_size=256, img_size=256):
        QWidget.__init__(self)

        self.win_size = win_size
        self.img_size = img_size

        self.drawWidget = GANGATEDraw(win_size=self.win_size,
                                      img_size=self.img_size)
        self.drawWidget.setFixedSize(win_size, win_size)

        self.visWidget_color = GANGATEVis(win_size=self.win_size,
                                          img_size=self.img_size,
                                          disable_browser=True)
        self.visWidget_color.setFixedSize(win_size, win_size)

        vbox = QVBoxLayout()

        self.drawWidgetBox = QGroupBox()
        self.drawWidgetBox.setTitle('Drawing Pad')
        vbox_t = QVBoxLayout()
        vbox_t.addWidget(self.drawWidget)
        self.drawWidgetBox.setLayout(vbox_t)
        vbox.addWidget(self.drawWidgetBox)

        self.labelId = 6

        self.bBasketball = QRadioButton("Basketball")
        self.bBasketball.setToolTip(
            "This button enables generation of a Basketball")

        self.bSoccer = QRadioButton("Soccer")
        self.bSoccer.setToolTip("This button enables generation of a Soccer")

        self.bWatermelon = QRadioButton("Watermelon")
        self.bWatermelon.setToolTip(
            "This button enables generation of a Watermelon")

        self.bOrange = QRadioButton("Orange")
        self.bOrange.setToolTip("This button enables generation of a Orange")

        self.bCookie = QRadioButton("Cookie")
        self.bCookie.setToolTip("This button enables generation of a Cookie")

        self.bMoon = QRadioButton("Moon")
        self.bMoon.setToolTip("This button enables generation of a Moon")

        self.bStrawberry = QRadioButton("Strawberry")
        self.bStrawberry.setToolTip(
            "This button enables generation of a Strawberry")

        self.bPineapple = QRadioButton("Pineapple")
        self.bPineapple.setToolTip(
            "This button enables generation of a Pineapple")

        self.bCupcake = QRadioButton("Cupcake")
        self.bCupcake.setToolTip("This button enables generation of a Cupcake")

        self.bChicken = QRadioButton("Fried Chicken")
        self.bChicken.setToolTip("This button enables generation of a Chicken")

        bhbox = QGridLayout()  #QHBoxLayout()
        bGroup = QButtonGroup(self)

        bGroup.addButton(self.bBasketball)
        bGroup.addButton(self.bSoccer)
        bGroup.addButton(self.bWatermelon)
        bGroup.addButton(self.bOrange)
        bGroup.addButton(self.bCookie)
        bGroup.addButton(self.bMoon)
        bGroup.addButton(self.bStrawberry)
        bGroup.addButton(self.bPineapple)
        bGroup.addButton(self.bCupcake)
        bGroup.addButton(self.bChicken)

        bhbox.addWidget(self.bBasketball, 0, 0)
        bhbox.addWidget(self.bSoccer, 1, 0)
        bhbox.addWidget(self.bWatermelon, 2, 0)
        bhbox.addWidget(self.bOrange, 3, 0)
        bhbox.addWidget(self.bCookie, 4, 0)
        bhbox.addWidget(self.bMoon, 0, 1)
        bhbox.addWidget(self.bStrawberry, 1, 1)
        bhbox.addWidget(self.bPineapple, 2, 1)
        bhbox.addWidget(self.bCupcake, 3, 1)
        bhbox.addWidget(self.bChicken, 4, 1)

        self.bGenerate = QPushButton('Generate !')
        self.bGenerate.setToolTip(
            "This button generates the final image to render")

        self.bReset = QPushButton('Reset !')
        self.bReset.setToolTip("This button resets the drawing pad !")

        self.bRandomize = QPushButton('Dice')
        self.bRandomize.setToolTip(
            "This button generates new set of generations the drawing pad !")

        self.bMoveStroke = QRadioButton('Move Stroke')
        self.bMoveStroke.setToolTip("This button resets the drawing pad !")

        self.bWarpStroke = QRadioButton('Warp Stroke')
        self.bWarpStroke.setToolTip("This button resets the drawing pad !")

        self.bDrawStroke = QRadioButton('Draw Stroke')
        self.bDrawStroke.setToolTip("This button resets the drawing pad !")

        self.bEnableShadows = QCheckBox('Enable Shadows')
        self.bEnableShadows.toggle()

        hbox = QHBoxLayout()
        hbox.addLayout(vbox)

        vbox4 = QVBoxLayout()
        self.visWidgetBox = QGroupBox()
        self.visWidgetBox.setTitle('Generations')

        vbox_t4 = QVBoxLayout()
        vbox_t4.addWidget(self.visWidget_color)
        self.visWidgetBox.setLayout(vbox_t4)
        vbox4.addWidget(self.visWidgetBox)

        hbox.addLayout(vbox4)
        hbox.addLayout(bhbox)

        bhbox_controls = QGridLayout()
        bGroup_controls = QButtonGroup(self)

        bGroup_controls.addButton(self.bReset)
        bGroup_controls.addButton(self.bDrawStroke)
        bGroup_controls.addButton(self.bMoveStroke)
        bGroup_controls.addButton(self.bWarpStroke)

        bhbox_controls.addWidget(self.bReset, 0, 0)
        bhbox_controls.addWidget(self.bRandomize, 0, 1)
        bhbox_controls.addWidget(self.bDrawStroke, 0, 2)
        bhbox_controls.addWidget(self.bMoveStroke, 0, 3)
        bhbox_controls.addWidget(self.bWarpStroke, 0, 4)
        bhbox_controls.addWidget(self.bEnableShadows, 0, 5)

        hbox.addLayout(bhbox)

        controlBox = QGroupBox()
        controlBox.setTitle('Controls')

        controlBox.setLayout(bhbox_controls)

        vbox_final = QVBoxLayout()
        vbox_final.addLayout(hbox)
        vbox_final.addWidget(controlBox)
        self.setLayout(vbox_final)

        self.bPineapple.setChecked(True)

        self.bDrawStroke.setChecked(True)

        self.enable_shadow = True

        self.bBasketball.clicked.connect(self.Basketball)
        self.bSoccer.clicked.connect(self.Soccer)
        self.bWatermelon.clicked.connect(self.Watermelon)
        self.bOrange.clicked.connect(self.Orange)
        self.bCookie.clicked.connect(self.Cookie)
        self.bMoon.clicked.connect(self.Moon)
        self.bStrawberry.clicked.connect(self.Strawberry)
        self.bPineapple.clicked.connect(self.Pineapple)
        self.bCupcake.clicked.connect(self.Cupcake)
        self.bChicken.clicked.connect(self.Chicken)
        self.bGenerate.clicked.connect(self.generate)
        self.bReset.clicked.connect(self.reset)
        self.bRandomize.clicked.connect(self.randomize)
        self.bMoveStroke.clicked.connect(self.move_stroke)
        self.bWarpStroke.clicked.connect(self.warp_stroke)
        self.bDrawStroke.clicked.connect(self.draw_stroke)
        self.bEnableShadows.stateChanged.connect(self.toggle_shadow)
Esempio n. 5
0
    def __init__(self, win_size=256, img_size=256):
        QWidget.__init__(self)

        self.win_size = win_size
        self.img_size = img_size

        self.drawWidget = GANGATEDraw(win_size=self.win_size,
                                      img_size=self.img_size)
        self.drawWidget.setFixedSize(win_size, win_size)

        self.visWidget = GANGATEVis(win_size=self.win_size,
                                    img_size=self.img_size)
        self.visWidget.setFixedSize(win_size, win_size)

        vbox = QVBoxLayout()

        self.drawWidgetBox = QGroupBox()
        self.drawWidgetBox.setTitle('Drawing Pad')
        vbox_t = QVBoxLayout()
        vbox_t.addWidget(self.drawWidget)
        self.drawWidgetBox.setLayout(vbox_t)
        vbox.addWidget(self.drawWidgetBox)

        self.labelId = 0

        self.bBicycle = QRadioButton("Bicycle")
        self.bBicycle.setToolTip("This button enables generation of a Bicycle")

        self.bCat = QRadioButton("Cat")
        self.bCat.setToolTip("This button enables generation of a Cat")

        self.bChair = QRadioButton("Chair")
        self.bChair.setToolTip("This button enables generation of a Chair")

        self.bHamburger = QRadioButton("Hamburger")
        self.bHamburger.setToolTip(
            "This button enables generation of a Hamburger")

        self.bPizza = QRadioButton("Pizza")
        self.bPizza.setToolTip("This button enables generation of a Pizza")

        self.bTeddy = QRadioButton("Teddy")
        self.bTeddy.setToolTip("This button enables generation of a Teddy")

        bhbox = QGridLayout()
        bGroup = QButtonGroup(self)

        bGroup.addButton(self.bBicycle)
        bGroup.addButton(self.bCat)
        bGroup.addButton(self.bChair)
        bGroup.addButton(self.bHamburger)
        bGroup.addButton(self.bPizza)
        bGroup.addButton(self.bTeddy)

        bhbox.addWidget(self.bBicycle, 0, 0)
        bhbox.addWidget(self.bCat, 1, 0)
        bhbox.addWidget(self.bChair, 2, 0)
        bhbox.addWidget(self.bHamburger, 0, 1)
        bhbox.addWidget(self.bPizza, 1, 1)
        bhbox.addWidget(self.bTeddy, 2, 1)

        self.bGenerate = QPushButton('Generate')
        self.bGenerate.setToolTip(
            "This button generates the final image to render")

        self.bReset = QPushButton('Reset')
        self.bReset.setToolTip("This button resets the drawing pad !")

        self.bRandomize = QPushButton('Dice')
        self.bRandomize.setToolTip(
            "This button generates new set of generations the drawing pad !")

        self.bMoveStroke = QRadioButton('Move Stroke')
        self.bMoveStroke.setToolTip("This button resets the drawing pad !")

        self.bWarpStroke = QRadioButton('Warp Stroke')
        self.bWarpStroke.setToolTip("This button resets the drawing pad !")

        self.bDrawStroke = QRadioButton('Draw Stroke')
        self.bDrawStroke.setToolTip("This button resets the drawing pad !")

        hbox = QHBoxLayout()
        hbox.addLayout(vbox)

        vbox3 = QVBoxLayout()
        self.visWidgetBox = QGroupBox()
        self.visWidgetBox.setTitle('Generations')

        vbox_t3 = QVBoxLayout()
        vbox_t3.addWidget(self.visWidget)
        self.visWidgetBox.setLayout(vbox_t3)
        vbox3.addWidget(self.visWidgetBox)

        bhbox_controls = QGridLayout()
        bGroup_controls = QButtonGroup(self)

        bGroup_controls.addButton(self.bReset)
        bGroup_controls.addButton(self.bDrawStroke)
        bGroup_controls.addButton(self.bMoveStroke)
        bGroup_controls.addButton(self.bWarpStroke)

        bhbox_controls.addWidget(self.bReset, 0, 0)
        bhbox_controls.addWidget(self.bRandomize, 0, 1)
        bhbox_controls.addWidget(self.bDrawStroke, 0, 2)
        bhbox_controls.addWidget(self.bMoveStroke, 0, 3)
        bhbox_controls.addWidget(self.bWarpStroke, 0, 4)

        hbox.addLayout(vbox3)
        hbox.addLayout(bhbox)

        controlBox = QGroupBox()
        controlBox.setTitle('Controls')

        controlBox.setLayout(bhbox_controls)

        vbox_final = QVBoxLayout()
        vbox_final.addLayout(hbox)
        vbox_final.addWidget(controlBox)
        self.setLayout(vbox_final)

        self.bTeddy.setChecked(True)
        self.labelId = 5
        self.bDrawStroke.setChecked(True)

        self.bBicycle.clicked.connect(self.Bicycle)
        self.bCat.clicked.connect(self.Cat)
        self.bChair.clicked.connect(self.Chair)
        self.bHamburger.clicked.connect(self.Hamburger)
        self.bPizza.clicked.connect(self.Pizza)
        self.bTeddy.clicked.connect(self.Teddy)

        self.bGenerate.clicked.connect(self.generate)
        self.bReset.clicked.connect(self.reset)
        self.bRandomize.clicked.connect(self.randomize)
        self.bMoveStroke.clicked.connect(self.move_stroke)
        self.bWarpStroke.clicked.connect(self.warp_stroke)
        self.bDrawStroke.clicked.connect(self.draw_stroke)