Ejemplo n.º 1
0
def celebA_128(use_model, rgb, reconstruct_iter, update_freq, input_size,
               show_area):
    if use_model:
        from painter_celebA_128 import VAEGAN_128_RGB as model

    p = Painter.Painter(use_model, rgb, reconstruct_iter, update_freq,
                        input_size, show_area, model)
    p.main()
Ejemplo n.º 2
0
    def humanWrite(self):

        self.tts.say("Human write start")

        # Stop awareness
        self.awareness.stopAwareness()

        self.tts.say("Start the painter")
        painter = Painter.Painter()
        painter.humanWrite()
Ejemplo n.º 3
0
 def __init__(self, parent=None):
     super().__init__(parent)
     self.setupUi(self)
     self.Dialog = WindowConfig()
     self.bag = self.Dialog
     self.my_field = Field(self, self.BlockHeight, self.BlockWidth,
                           self.Difficulty)
     self.timer = QBasicTimer()
     self.count_deleted_blocks = 0
     self.painter = Painter(self, self.BlockHeight, self.BlockWidth)
     self.is_paused = False
     self.is_started = False
     self.setFocusPolicy(Qt.StrongFocus)
     self.setCentralWidget(self.painter)
     self.msgStatusbar[str].connect(self.statusbar.showMessage)
     self.bag.punched.connect(self.env_punched)
     self.create_menu()
Ejemplo n.º 4
0
                # First time, calibration
                first_time = False
                root1 = tk.Tk()
                calibration1 = Calibration.Calibration(root1)
                calibration1.tts.say("Open the window")
                print "Open the calibration window."
                print "Please give me the tablet."
                app.tts.say("Please give me the tablet.")
                calibration1.startCalibrationWindow()
                calibration1.window.mainloop()
            app.prepare_Pen()

            # Touch Frot tactile to grasp the pen
            app.graspPen(touchCommand)

            painter = Painter.Painter()
            painter.keyboardControl()
            app.penUp()

            # Release the pen
            app.releasePen(touchCommand)

            # Return to initial pos
            app.returnInitial()

        # if touchCommand.buttonName == "RearTactile":
        if "RearTactile" in touchCommand.touch_list:
            touchCommand.touch_list = []
            # touchCommand.buttonName = None
            app.tts.say("End the programe")
            print "Please Move the box away."
#
#  main.py
#  HackThe6ix
#
#  Created by Jeffrey, Maliha, Justin  and Lennart on 2016-08-06.
#  Copyright 2016 Researchnix. All rights reserved.
#

import sys
import time

import Painter
#import visualization



if __name__ == "__main__":
    t = time.time()

    # Initialize the Master and check its state
    #mas = Master.Master()
    #mas.printState()
    #mas.run()
    #visualization.visualization()

    pain = Painter.Painter()
    pain.mainloop()


    print "\n\nDone in " + str(time.time() - t) + " s"