]> Creatis software - gdcm.git/blobdiff - gdcmPython/demo/PrintDicomDir.py.in
Deal with element 0x0001 of Private Groups
[gdcm.git] / gdcmPython / demo / PrintDicomDir.py.in
index c988a4e6b0f89c072d849de71b50cb41d1d3e48d..266adb19dfdbe1047734df02a01b6ebaccb42a01 100644 (file)
@@ -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()