]> Creatis software - gdcm.git/commitdiff
* Fix bug in the Python demo
authorregrain <regrain>
Wed, 26 Oct 2005 12:36:06 +0000 (12:36 +0000)
committerregrain <regrain>
Wed, 26 Oct 2005 12:36:06 +0000 (12:36 +0000)
   -- BeNours

gdcmPython/demo/PrintDicomDir.py.in
gdcmPython/demo/PrintFile.py.in

index c988a4e6b0f89c072d849de71b50cb41d1d3e48d..dcd47fef32a27530b8e3407318497e67d5c46637 100644 (file)
@@ -34,7 +34,7 @@ except IndexError:
    printLevel = 1
 
 ### Build the DicomDir element list
-dicomdir = gdcm.DicomDir()
+dicomdir = gdcm.DicomDir.New()
 
 dicomdir.SetStartMethod(startMethod)
 dicomdir.SetProgressMethod(progressMethod)
index 2b3582faf95c4194914de878aa63dc6bbb56dad6..a6d6bfbb2bdc4d5fc9d202046ab43e826551c8d7 100644 (file)
@@ -26,7 +26,7 @@ except IndexError:
    printLevel = 1
 
 ### Build the file element list
-file = gdcm.File()
+file = gdcm.File.New()
 file.SetFileName(fileName)
 file.Load()
 if not file.IsReadable():