Before change images load

This commit is contained in:
Andrzej 2021-06-21 07:43:46 +02:00
parent 802091261f
commit 668081427f
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ class Field(object):
self.small_image_array = [[0 for i in range(self.rows)] for j in range(self.columns)]
self.large_image_array = [[0 for i in range(self.rows)] for j in range(self.columns)]
self.large_image_array_filepath = [[0 for _ in range(self.rows)] for __ in range(self.columns)]
self.small_large_path_images_array = [[0 for _ in range(self.rows)] for __ in range(self.columns)]
self.cell_expense = [0 for i in range(self.rows * self.columns)]
# Array rows * columns, if on [x][y] mine, object mine will be in the array in this position
self.state_of_cell_array = [["None" for _ in range(self.rows)] for __ in range(self.columns)]

View File

@ -676,6 +676,7 @@ def LoadData(small_directory, large_directory):
return small_array, large_array, path_array
def main():
# Creating the main window of an application
win_size = f'{WINDOW_X}x{WINDOW_Y}'