pynovisao.py 1.39 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/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()
22 23
    tk.add_command("Refresh Classes...", lambda *_: refresh_classes(tk), 'R')
    tk.add_separator()
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    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()
    
46 47 48
    tk.open_log()
    
    tk.add_panel_classes()
49 50
    
    tk.show()