Changes for page Widget PSE

Last modified by teodoramisan on 2023/07/21 14:55

From version 23.1
edited by teodoramisan
on 2023/07/21 12:54
Change comment: There is no comment for this version
To version 24.1
edited by teodoramisan
on 2023/07/21 14:55
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -112,7 +112,14 @@
112 112  
113 113  (% class="box" %)
114 114  (((
115 -pse = PSEWidget("test.h5")
115 +import os.path
116 +
117 +file_name = "test.h5"
118 +
119 +if os.path.exists(file_name):
120 + pse = PSEWidget(file_name)
121 +else:
122 + print(f"File {file_name} needs to exist!")
116 116  )))
117 117  
118 118   The outcome will be something like in the image bellow.
Public

TVB Widgets