diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-29 10:33:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-30 07:37:28 +0300 |
commit | b39a0d519871844f74be12cbeff31e4a6edb6e41 (patch) | |
tree | 86b192982cecc18975a69997d1f2f57c1157966e /system_demo_mode/demo_mode.py | |
parent | 7fb1a1ca26c519d12ffb3973f68fa50f306d7456 (diff) |
Cleanup: style
Diffstat (limited to 'system_demo_mode/demo_mode.py')
-rw-r--r-- | system_demo_mode/demo_mode.py | 40 |
1 files changed, 22 insertions, 18 deletions
diff --git a/system_demo_mode/demo_mode.py b/system_demo_mode/demo_mode.py index 1a717a5e..b365fdfc 100644 --- a/system_demo_mode/demo_mode.py +++ b/system_demo_mode/demo_mode.py @@ -44,23 +44,26 @@ DEMO_CFG = "demo.py" # populate from script global_config_files = [] -global_config = dict(anim_cycles=1, - anim_render=False, - anim_screen_switch=0.0, - anim_time_max=60.0, - anim_time_min=4.0, - mode='AUTO', - display_render=4.0) +global_config = dict( + anim_cycles=1, + anim_render=False, + anim_screen_switch=0.0, + anim_time_max=60.0, + anim_time_min=4.0, + mode='AUTO', + display_render=4.0, +) # switch to the next file in 2 sec. -global_config_fallback = dict(anim_cycles=1, - anim_render=False, - anim_screen_switch=0.0, - anim_time_max=60.0, - anim_time_min=4.0, - mode='AUTO', - display_render=4.0) - +global_config_fallback = dict( + anim_cycles=1, + anim_render=False, + anim_screen_switch=0.0, + anim_time_max=60.0, + anim_time_min=4.0, + mode='AUTO', + display_render=4.0, +) global_state = { "init_time": 0.0, @@ -253,9 +256,10 @@ def demo_mode_update(): demo_mode_next_file() return # above cycles and minimum display time - if (time_total > global_config["anim_time_min"]) and \ - (global_state["anim_cycles"] > global_config["anim_cycles"]): - + if ( + (time_total > global_config["anim_time_min"]) and + (global_state["anim_cycles"] > global_config["anim_cycles"]) + ): # looped enough now. demo_mode_next_file() return |