1
+ #---------------------------------------------------
2
+ # Imports
3
+ #---------------------------------------------------
1
4
from src .dev .ordenacao .ordenacao_insercao import Insert
2
5
from src .dev .ordenacao .ordenacao_bubblesort import *
3
6
from src .dev .ordenacao .ordenacao_quicksort import *
6
9
from src .dev .visual .view import *
7
10
from src .dev .utils .ordenacao import *
8
11
12
+
9
13
class Principal :
10
14
11
15
def __init__ (self ):
12
16
self .start_order = Ordenacao ()
17
+ self .start_ordering ()
13
18
14
19
def start_ordering (self ):
15
20
Log ().escrever ("Iniciando o processo de ordenação..." )
@@ -20,24 +25,14 @@ def start_ordering(self):
20
25
21
26
Log ().escrever ("Finalizado o processo de ordenação\n " )
22
27
28
+ self .start_gui ()
29
+
30
+
31
+ def start_gui (self ):
32
+ View ().createView (self .start_order .get_data ())
33
+
23
34
24
35
if __name__ == '__main__' :
25
-
26
- initi = Principal ()
27
- initi .start_ordering ()
28
-
29
- data = [
30
-
31
- ['Inserção' , 'Comparações' , initi .start_order .get_comparacoes_insercao ()[0 ], initi .start_order .get_comparacoes_insercao ()[1 ]],
32
- ['Inserção' , 'Movimentações' , initi .start_order .get_movimentacoes_insercao ()[0 ], initi .start_order .get_movimentacoes_insercao ()[1 ]],
33
- ['BubbleSort' , 'Comparações' , initi .start_order .get_comparacoes_bubblesort ()[0 ], initi .start_order .get_comparacoes_bubblesort ()[1 ]],
34
- ['BubbleSort' , 'Movimentações' , initi .start_order .get_movimentacoes_bubblesort ()[0 ], initi .start_order .get_movimentacoes_bubblesort ()[1 ]],
35
- ['QuickSort' , 'Comparações' , initi .start_order .get_comparacoes ()[0 ], initi .start_order .get_comparacoes ()[1 ]],
36
- ['QuickSort' , 'Movimentações' , initi .start_order .get_movimentacoes ()[0 ], initi .start_order .get_movimentacoes ()[1 ]]
37
- ]
38
-
39
- View ().createView (data )
40
-
41
-
42
-
36
+ Principal ()
43
37
38
+
0 commit comments