2019SZI-Projekt/main.py

22 lines
470 B
Python
Raw Normal View History

from UI.grid import Grid
from UI.window import Window
2019-05-01 02:21:02 +02:00
from UI.settings import Settings
import PyQt5.QtWidgets as QtWidgets
def main():
2019-05-01 02:21:02 +02:00
import sys
app = QtWidgets.QApplication(sys.argv)
Settings()
2019-05-04 18:46:28 +02:00
sys.exit(app.exec_())
# initialize grid
grid = Grid(20, 20)
2019-04-28 16:13:41 +02:00
# initialize window (grid, start,end,mode)
2019-05-01 02:09:06 +02:00
# mode 1 - random obstacles
# mode 2 - board obstacles
Window(grid, (0, 0), (19, 19), 1)
2019-04-07 16:15:19 +02:00
if __name__ == "__main__":
main()