2022-08-30 21:12:04 +02:00
|
|
|
from controller.HomeController import HomeController
|
|
|
|
from controller.InfoController import InfoController
|
2022-08-30 12:28:59 +02:00
|
|
|
from controller.MainController import MainController
|
2022-08-30 21:12:04 +02:00
|
|
|
from controller.Frames import Frames
|
2022-08-31 21:05:20 +02:00
|
|
|
from model.webpic import WebPicDownloader
|
2022-08-30 21:12:04 +02:00
|
|
|
from view.HomeView import HomeView
|
|
|
|
from view.InfoView import InfoView
|
2022-08-30 12:28:59 +02:00
|
|
|
from view.MainWindow import MainWindow
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2022-08-30 21:12:04 +02:00
|
|
|
"""
|
|
|
|
WebPicDownloader is a program developed and maintened by EndMove under Apache 2.0 License. Stealing code is a crime !
|
|
|
|
Disclamer : The developer of this application can in no way be held responsible if his application is used for illegal purposes.
|
|
|
|
|
|
|
|
@author Jérémi Nihart / EndMove
|
|
|
|
@link https://git.endmove.eu/EndMove/WebPicDownloader
|
|
|
|
@version 1.0.0
|
|
|
|
@since 2022-08-30
|
|
|
|
"""
|
2022-08-31 21:05:20 +02:00
|
|
|
# Create utli/model
|
|
|
|
webpic = WebPicDownloader()
|
|
|
|
|
2022-08-30 21:12:04 +02:00
|
|
|
# Create app controllers
|
|
|
|
main_controller = MainController()
|
2022-08-31 21:05:20 +02:00
|
|
|
home_controller = HomeController(main_controller, webpic)
|
2022-08-30 21:12:04 +02:00
|
|
|
info_controller = InfoController(main_controller)
|
|
|
|
|
|
|
|
# Create app views
|
|
|
|
main_window = MainWindow(main_controller)
|
|
|
|
home_view = HomeView(main_window, home_controller)
|
|
|
|
info_controller = InfoView(main_window, info_controller)
|
|
|
|
|
|
|
|
# Add views to main window
|
|
|
|
main_window.add_view(Frames.Home, home_view)
|
|
|
|
main_window.add_view(Frames.Info, info_controller)
|
|
|
|
|
|
|
|
# Choose the launching view
|
|
|
|
main_window.show_frame(Frames.Home)
|
|
|
|
|
|
|
|
# Start main windows looping (launch program)
|
2022-08-31 12:07:43 +02:00
|
|
|
main_window.mainloop()
|