Skip to content

Commit

Permalink
Simple GUI
Browse files Browse the repository at this point in the history
Slightly easier file input
  • Loading branch information
Quadrum1 authored May 12, 2020
1 parent a0cc76d commit 8ce95e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/image_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from PIL import Image, ImageFilter, ImageOps
import numpy as np

from easygui import fileopenbox

class Image_handler(object):
def __init__(self,image):
Expand All @@ -9,11 +9,11 @@ def __init__(self,image):
@staticmethod
def get_image() -> str:
"""
Ask's users the name of the file to be used
Ask's users fir file to be used
:return:
a string of the file name
a string of the file path
"""
path = input("what is the filename of the image?")
path = fileopenbox()
return path

def convert_bandw(self) -> None:
Expand Down

0 comments on commit 8ce95e1

Please sign in to comment.