Browse Source

image.py can show filtered list of images.

Thomas Buck 1 year ago
parent
commit
c75b4a5d79
4 changed files with 4 additions and 0 deletions
  1. 4
    0
      image.py
  2. BIN
      images/cann.png
  3. BIN
      images/cann2.png
  4. BIN
      images/sb.png

+ 4
- 0
image.py View File

133
     for f in os.listdir(os.fsencode(imageDir)):
133
     for f in os.listdir(os.fsencode(imageDir)):
134
         filename = os.fsdecode(f)
134
         filename = os.fsdecode(f)
135
 
135
 
136
+        if len(sys.argv) > 1:
137
+            if not sys.argv[1] in filename:
138
+                continue
139
+
136
         d = ImageScreen(t, filename)
140
         d = ImageScreen(t, filename)
137
         m.add(d)
141
         m.add(d)
138
 
142
 

BIN
images/cann.png View File


BIN
images/cann2.png View File


BIN
images/sb.png View File


Loading…
Cancel
Save