Files
cinnamon-dynamic-wallpaper/cinnamon-dynamic-wallpaper@TobiZog/5.4/src/main.py
2024-02-15 17:34:07 +01:00

19 lines
444 B
Python
Executable File

#!/usr/bin/python3
import sys
from view.main_window import *
from model.main_view_model import *
if __name__ == "__main__":
if len(sys.argv) == 1:
# Load the configuration window
main = Main_Window()
main.show()
elif sys.argv[1] == "loop":
# Run the methods which updates the data
view_model = Main_View_Model()
view_model.set_login_image()
view_model.refresh_image()
view_model.set_background_gradient()