diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 18:34:07 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-06-24 18:34:07 -0500 |
| commit | 0b0c1978c4f7b57a240575de56b8e40d29c3c219 (patch) | |
| tree | 4bc4c86175efc86f2a3564b78b6fa4ef05ed4407 /window.py | |
| parent | 8fa092b81aa09239e15b44e2002c7d18d3f4244b (diff) | |
| download | immich-frame-0b0c1978c4f7b57a240575de56b8e40d29c3c219.tar.xz immich-frame-0b0c1978c4f7b57a240575de56b8e40d29c3c219.zip | |
live reload window display config
Diffstat (limited to 'window.py')
| -rw-r--r-- | window.py | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -19,12 +19,6 @@ class PixDisplay: self.win_w = 0 self.win_h = 0 - config = PixMan().config - self.max_framerate = config.max_framerate - self.image_duration = config.image_duration - self.transition_duration = config.transition_duration - self.auto_transition = config.auto_transition - self.transition_reverse = False self.text_prev = None self.tex = None @@ -32,6 +26,15 @@ class PixDisplay: self._force_redraw = False self.queue = Queue() + self.update_config() + + def update_config(self): + config = PixMan().config + self.max_framerate = config.max_framerate + self.image_duration = config.image_duration + self.transition_duration = config.transition_duration + self.auto_transition = config.auto_transition + @property def max_framerate(self): #return int(1000/int(1000/self.frame_time)) |
