コード例 #1
0
ファイル: r2map.py プロジェクト: rpolanek/gellies
    def __init__(self, parent, root, name):
        self.project = root
        self.root = parent
        self.name = name
        GUIFramework.__init__(self, parent)
        self.colegues = []
        col = (('file', 'te'), ('file/File/100', 'te/TE(ms)/100'))
        self.r2map_panel = tk.Frame(self.root)
        self.r2map_panel.pack(side=tk.TOP, fill=tk.BOTH, expand=1)
        self.r2map_tree = TreePanel(self.r2map_panel, 'r2projectpanel', col)
        self.r2map_tree.register(self)
        self.r2map_tree.pack(side=tk.LEFT, fill=tk.BOTH, expand=1)

        self.r2map_1 = tk.LabelFrame(self.root, text='Image preprocessing')
        self.r2map_1.pack(side=tk.TOP, fill=tk.BOTH, expand=1)
        self.lx0 = tk.StringVar()
        self.lx1 = tk.StringVar()
        self.ly0 = tk.StringVar()
        self.ly1 = tk.StringVar()
        tk.Label(self.r2map_1, text='x0 = ').grid(row=0,column=0, padx=4, pady=4)
        tk.Label(self.r2map_1, textvariable=self.lx0, width=3).grid(row=0, column=1, padx=4, pady=4)
        tk.Label(self.r2map_1, text='x1 = ').grid(row=1,column=0,padx=4, pady=4)
        tk.Label(self.r2map_1, textvariable=self.lx1, width=3).grid(row=1, column=1, padx=4, pady=4)
        tk.Label(self.r2map_1, text='y0 = ').grid(row=0,column=2, padx=4, pady=4)
        tk.Label(self.r2map_1, textvariable=self.ly0, width=3).grid(row=0, column=3, padx=4, pady=4)
        tk.Label(self.r2map_1, text='y1 = ').grid(row=1,column=2, padx=4, pady=4)
        tk.Label(self.r2map_1, textvariable=self.ly1, width=3).grid(row=1, column=3, padx=4, pady=4)

        self.r2map_2 = tk.LabelFrame(self.root, text='Interpolation parameter')
        self.r2map_2.pack(side=tk.TOP, fill=tk.BOTH, expand=1)
        tk.Label(self.r2map_2, text = 'Interpolation method: ').grid(row=0, column=0)
        self.map_algoritm = tk.StringVar(self)
        tk.OptionMenu(self.r2map_2, self.map_algoritm, 'Polyfit', 'Linregres').grid(row=0, column=1)

        self.r2map_3 = tk.LabelFrame(self.root, text='Output parameters')
        self.r2map_3.pack(side=tk.TOP, fill=tk.BOTH, expand=1)


        self.r2mapicon = tk.PhotoImage(file='icons/r2map.gif')
        self.r2map = tk.Button(self.root, image=self.r2mapicon, command=self.r2maping)
        self.r2map.pack()
コード例 #2
0
ファイル: gellies.py プロジェクト: rpolanek/gellies
 def __init__(self, root):
     GUIFramework.__init__(self, root)
     self.root = root
     self.build_GUI()
     self.r2mapsID = None