-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable_filter.py
More file actions
executable file
·58 lines (41 loc) · 1.5 KB
/
table_filter.py
File metadata and controls
executable file
·58 lines (41 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env python
""" Main interface for the program """
import Tkinter as tk
import os
import ttk
import sys
import inspect
try:
import interfaces.conversion_interface.conversionframe as cvt_interface
except ImportError:
CUR = os.path.dirname(os.path.abspath(
inspect.getfile(inspect.currentframe())))
sys.path.insert(0, CUR)
import interfaces.conversion_interface.conversionframe as cvt_interface
import interfaces.database_interface.databaseframe as db_interface
import interfaces.filter_interface.filterframe as flt_interface
import interfaces.analysis_interface.analysisframe as anl_interface
import interfaces.type_interface.typeframe as tp_interface
import tb_code.typehandle as tph
import tb_code.standart as std
def main():
""" Main program function """
window = tk.Tk()
window.title('TableFilter')
notebook = ttk.Notebook(window)
tph.initialize_types(std.TYPE_FILENAME)
std.clean_log_file()
cvt_frame = cvt_interface.ConversionFrame(notebook)
notebook.add(cvt_frame, text='Conversao')
flt_frame = flt_interface.FilterFrame(notebook)
notebook.add(flt_frame, text='Filtragem')
anl_frame = anl_interface.AnalysisFrame(notebook)
notebook.add(anl_frame, text='Analise')
db_frame = db_interface.DatabseFrame(notebook)
notebook.add(db_frame, text='Base de Dados')
tp_frame = tp_interface.TypeFrame(notebook)
notebook.add(tp_frame, text='Tipos')
notebook.pack()
window.mainloop()
if __name__ == "__main__":
main()