File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 3
3
import random
4
4
import time
5
5
import ExtraWidgits
6
+ import ExtraWidgits_for_Pathfinders
6
7
from threading import *
7
8
import StartProcess
8
9
import Knight_Tour
@@ -43,10 +44,12 @@ def StartVisualization(self):
43
44
self .grid ()
44
45
AddClock = ExtraWidgits .Clock (self .win , 850 , 100 , 25 )
45
46
AddClock .start ()
46
- AddMainMenuButton = ExtraWidgits .MainMenuButton (self .win ,700 ,300 )
47
- AddMainMenuButton .start ()
47
+
48
48
AddExitText = ExtraWidgits .ExitText (self .win ,725 ,250 )
49
49
AddExitText .start ()
50
+ AddMainMenuButton = ExtraWidgits_for_Pathfinders .MainMenuButton (self .win ,700 ,300 )
51
+ AddMainMenuButton .start ()
52
+
50
53
StartSolving = Thread (target = self .solve )
51
54
StartSolving .start ()
52
55
self .CheckActions ()
@@ -112,6 +115,9 @@ def show(self):
112
115
xx , yy = self .ans [i ]
113
116
self .win .blit (self .knight_img , (self .x1 + xx * self .block , self .x1 + yy * self .block ))
114
117
118
+ update_display = pygame .Rect (0 ,0 ,self .SIDE ,self .SIDE )
119
+ pygame .display .update (update_display )
120
+
115
121
116
122
117
123
def solve (self ):
You can’t perform that action at this time.
0 commit comments