Zitat von
RichardF am 30. Oktober 2020, 15:03 Uhr
Hey Léo,
your question makes totally sense 🙂
Here is an example how you can open the dialog from an external python script and set the path:
import sys
sys.path.append("C:/Prism/Scripts")
import PrismCore
# create dialog
pcore = PrismCore.create()
window = pcore.projects.createProjectDialog()
window.e_name.setText("projectName")
window.e_path.setText("P:/ __PROD__/CLIENT/WORK/Prism project name/")
# to open GUIs the PySide eventloop has to be started
from PySide2.QtWidgets import *
QApplication.instance().exec_()
Note: I made a small improvement to Prism to make the above example work. You need Prism v1.3.0.45 for it. For previous Prism versions the code would be slightly different.
Hey Léo,
your question makes totally sense 🙂
Here is an example how you can open the dialog from an external python script and set the path:
import sys
sys.path.append("C:/Prism/Scripts")
import PrismCore
# create dialog
pcore = PrismCore.create()
window = pcore.projects.createProjectDialog()
window.e_name.setText("projectName")
window.e_path.setText("P:/ __PROD__/CLIENT/WORK/Prism project name/")
# to open GUIs the PySide eventloop has to be started
from PySide2.QtWidgets import *
QApplication.instance().exec_()
Note: I made a small improvement to Prism to make the above example work. You need Prism v1.3.0.45 for it. For previous Prism versions the code would be slightly different.