unify style with ++ variant

This commit is contained in:
matthias@arch 2023-12-01 21:31:05 +01:00
parent 07859d6682
commit 4eba27bc89

View File

@ -1,8 +1,7 @@
#!/bin/python3 #!/bin/python3
import argparse
import curses as c import curses as c
import ueberzug.lib.v0 as uz
import os import os
from os import path, getcwd, listdir, makedirs, rename from os import path, getcwd, listdir, makedirs, rename
import subprocess import subprocess
@ -15,8 +14,8 @@ if __name__ == "__main__": # make relative imports work as described here: http
sys.path.insert(0, path.dirname(path.dirname(filepath))) sys.path.insert(0, path.dirname(path.dirname(filepath)))
from .configs import read_config, select_config from .configs import read_config, select_config
import ueberzug.lib.v0 as uz
import argparse
settings = { settings = {
"q": "quit", "q": "quit",
@ -108,7 +107,7 @@ class Sorter:
self.images.sort() self.images.sort()
self.images_new = self.images.copy() self.images_new = self.images.copy()
# print(self.images) # print(self.images)
def display_image(self): def display_image(self):
with self.canvas.lazy_drawing: # issue ueberzug command AFTER with-statement with self.canvas.lazy_drawing: # issue ueberzug command AFTER with-statement
self.placement.path = self.image self.placement.path = self.image