#!/usr/bin/python # -*- coding: utf-8 -*- # """ Nome: pynovisao.py Autor: Alessandro dos Santos Ferreira ( santosferreira.alessandro@gmail.com ) Descricão: TODO """ from actions import * from interface import * if __name__ == "__main__": tk = TkInterface.TkInterface("Pynovisao") tk.add_menu("File") tk.add_command("Open...", lambda *_: open_image(tk), 'O') tk.add_separator() tk.add_command("Refresh Classes...", lambda *_: refresh_classes(tk), 'R') tk.add_separator() tk.add_command("Rotate...", lambda *_: rotate_image(tk), 't') tk.add_command("Close", lambda *_: close_image(tk), 'W') tk.add_separator() tk.add_command("Quit", lambda *_: tk.quit(), 'Q') tk.add_menu("Segmentation") tk.add_command("Configure", lambda *_: config_segmentation(tk), 'g') tk.add_separator() tk.add_command("Execute", lambda *_: run_segmentation(tk), 'S') tk.add_menu("Feature Extraction") tk.add_command("Configure", lambda *_: func_not_available(tk)) tk.add_separator() tk.add_command("Execute", lambda *_: func_not_available(tk), 'E') tk.add_menu("Classification") tk.add_command("Configure", lambda *_: func_not_available(tk)) tk.add_separator() tk.add_command("Execute", lambda *_: func_not_available(tk), 'C') tk.render_menu() tk.open_log() tk.add_panel_classes() tk.show()