From ef7c7644b9950359a8481994fcfba67910e899dd Mon Sep 17 00:00:00 2001 From: Lerking <33354709+Lerking@users.noreply.github.com> Date: Mon, 12 Feb 2018 14:26:52 +0100 Subject: [PATCH] Add files via upload --- h2inc.py | 2 ++ h2inc_gui.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/h2inc.py b/h2inc.py index 760f4ce..c3ee4be 100644 --- a/h2inc.py +++ b/h2inc.py @@ -8,6 +8,7 @@ import os import sys from h2inc_parser import parseline, parseparsed +from h2inc_gui import currentfile_update import h2inc_gui tupline = [] @@ -57,6 +58,7 @@ def process_files(sourcedir, destdir): filehandle = open(f, 'r') #cnt += 1 print(os.path.basename(f)) + currentfile_update(os.path.basename(f)) for lines in filehandle: print(lines) preproc = preproc+tuple([parseline(lines)]) diff --git a/h2inc_gui.py b/h2inc_gui.py index 6566592..368447f 100644 --- a/h2inc_gui.py +++ b/h2inc_gui.py @@ -158,6 +158,9 @@ class h2incGUI: def cfileprogress_update(cnt): self.cfilevar = cnt + def currentfile_update(current): + self.currentfile = 'Current file: '+current + root = Tk() root.update() #root.minsize(350, 210)