Skip to content

Commit

Permalink
Added Browser script to browse data file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanjay94 authored and fgoudreault committed Jul 3, 2017
1 parent 2197ead commit 93d4f55
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions auxiclean/browser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
from .selector import Selector
import tkinter
from tkinter import filedialog
root = tkinter.Tk()


class Browser:
def __init__(self):
path_file = self.select_path_file()
Selector(path_file)

def select_path_file(self):
data_file = filedialog.askopenfile(parent=root, mode='rb',
title='Choose the data file')
if data_file is not None:
path_file = data_file.name
data_file.close()
return path_file
3 changes: 3 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from auxiclean.browser import Browser

Browser()

0 comments on commit 93d4f55

Please sign in to comment.