X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2Fdemo%2FPrintDicomDir.py.in;h=266adb19dfdbe1047734df02a01b6ebaccb42a01;hb=948a61ee55f77597a187134c7699e3f2021226ba;hp=c988a4e6b0f89c072d849de71b50cb41d1d3e48d;hpb=bd1e1aea88a95e4d14cd59088a7e5280703402ea;p=gdcm.git diff --git a/gdcmPython/demo/PrintDicomDir.py.in b/gdcmPython/demo/PrintDicomDir.py.in index c988a4e6..266adb19 100644 --- a/gdcmPython/demo/PrintDicomDir.py.in +++ b/gdcmPython/demo/PrintDicomDir.py.in @@ -12,14 +12,6 @@ def PrintUse(): print "" print "" -### Progress methods -def startMethod(): - print "Start" -def progressMethod(): - print "Progress",dicomdir.GetProgress() -def endMethod(): - print "End" - ### Get filename from command line or default it try: fileName = sys.argv[1] @@ -34,11 +26,7 @@ except IndexError: printLevel = 1 ### Build the DicomDir element list -dicomdir = gdcm.DicomDir() - -dicomdir.SetStartMethod(startMethod) -dicomdir.SetProgressMethod(progressMethod) -dicomdir.SetEndMethod(endMethod) +dicomdir = gdcm.DicomDir.New() dicomdir.SetFileName(fileName) dicomdir.Load()