Skip to content

Instantly share code, notes, and snippets.

@ImagingSolution
ImagingSolution / imageviewer.py
Last active March 15, 2023 00:11
python image viewer
import tkinter as tk # ウィンドウ作成用
from tkinter import filedialog # ファイルを開くダイアログ用
from PIL import Image, ImageTk # 画像データ用
import numpy as np # アフィン変換行列演算用
import os # ディレクトリ操作用
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()