Ejemplo n.º 1
0
    def __init__(self, root):
        Tkinter.Frame.__init__(self, root)

        entry_opt = {'fill': Tkconstants.BOTH, 'padx': 5, 'pady': 5}

        self.executablePicker = FilePickerView(root, "Choose executable")
        self.executablePicker.pack(**entry_opt)

        self.inputPicker = DirectoryPickerView(root, "Choose input directory",
                                               False)
        self.inputPicker.pack(**entry_opt)

        self.argumentsView = ArgumentsView(root)
        self.argumentsView.pack(**entry_opt)

        self.outputPicker = DirectoryPickerView(root,
                                                "Choose output directory")
        self.outputPicker.pack(**entry_opt)

        self.executablePicker.fileName.set("ls")
        self.inputPicker.directory.set("/Users/kkapitan/bench/test")

        self.setupButton(root)

        self.plotCanvas = PlotView(root)
        self.plotCanvas.pack(**entry_opt)
Ejemplo n.º 2
0
    def __init__(self, root):
        Tkinter.Frame.__init__(self, root)

        self.fileInputView = fi = ExecutableInputView(self)
        fi.pack()

        self.gridView = gv = GridView(self, 5)
        gv.pack()

        self.plotView = pv = PlotView(self)
        pv.pack()

        button = ButtonFactory().createButton(self, "Bench it!",
                                              self.main_action)
        button.pack({'fill': Tkconstants.BOTH, 'padx': 5, 'pady': 5})
Ejemplo n.º 3
0
    def __init__(self, _id, _nframes, _desc=None, _lower=-100, _upper=100):
        self.plotView = PlotView(_id, _nframes, _desc, _lower, _upper)
        self.quantile_section = []
        self.landmark_list = []
        self.state = []

        self.line, = self.plotView.axes.plot([], [], lw=1)
        self.current_frame = 0
        fig1 = plt.figure(_id)
        self.animpos = animation.FuncAnimation(fig1,
                                               self.posIndicate,
                                               interval,
                                               blit=False,
                                               repeat=True)
        self.update()