MVVM pattern finished, adding multiple location provider
This commit is contained in:
17
cinnamon-dynamic-wallpaper@TobiZog/5.4/src/main.py
Executable file
17
cinnamon-dynamic-wallpaper@TobiZog/5.4/src/main.py
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
from ui.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.refresh_image()
|
||||
view_model.set_background_gradient()
|
||||
Reference in New Issue
Block a user