ソースを参照

image.py can show filtered list of images.

Thomas Buck 10ヶ月前
コミット
c75b4a5d79
4個のファイルの変更4行の追加0行の削除
  1. 4
    0
      image.py
  2. バイナリ
      images/cann.png
  3. バイナリ
      images/cann2.png
  4. バイナリ
      images/sb.png

+ 4
- 0
image.py ファイルの表示

@@ -133,6 +133,10 @@ if __name__ == "__main__":
133 133
     for f in os.listdir(os.fsencode(imageDir)):
134 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 140
         d = ImageScreen(t, filename)
137 141
         m.add(d)
138 142
 

バイナリ
images/cann.png ファイルの表示


バイナリ
images/cann2.png ファイルの表示


バイナリ
images/sb.png ファイルの表示


読み込み中…
キャンセル
保存