-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Browser script to browse data file
- Loading branch information
1 parent
2197ead
commit 93d4f55
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from auxiclean.browser import Browser | ||
|
||
Browser() |