def _create_widgets(self):
# Gold standard data
self.gold_path_label = ttk.Label(text="Gold Standard:")
self.gold_path_entry = ttk.Entry(textvariable=self.gold_path)
self.gold_path_filebutton = ttk.Button(text="...", command=self.findgoldfile)
# Training data for language 1
self.lang1_train_path_label = ttk.Label(text="Language 1 Training Data:")
self.lang1_train_path_entry = ttk.Entry(textvariable=self.lang1_train_path)
self.lang1_train_path_filebutton = ttk.Button(text="...", command=self.findlang1trainfile)
# Training data for language 2
self.lang2_train_path_label = ttk.Label(text="Language 2 Training Data:")
self.lang2_train_path_entry = ttk.Entry(textvariable=self.lang2_train_path)
self.lang2_train_path_filebutton = ttk.Button(text="...", command=self.findlang2trainfile)
# Examination
self.examine_button = ttk.Button(text="Examine!", command=self.launch_main)
# Redirected ouput
self.output_frame = ttk.Frame()
self.output = tk.Text(master=self.output_frame)
self.output_scroll = ttk.Scrollbar(self.output_frame)
self.output.configure(yscrollcommand=self.output_scroll.set)
self.output_scroll.configure(command=self.output.yview)
self.redirected = Redirector(self.output)
eval_gui.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录