본문 바로가기

Life Insight/tools

[3dsMax Python] GUI with PySide2

728x90

Save file with file explorer

예전에 했던건데 나중에 정리해야겠다
 
from PySide2.QtWidgets import QApplication, QFileDialog
from PySide2 import QtWidgets, QtGui, QtCore

	options = QFileDialog.Options()
	options = QFileDialog.DontUseNativeDialog
	fileName, _ = QFileDialog.getSaveFileName(
		None,"Save warning txt: input txt file name",
		'D:\\Clouds\\PROJECTS\\_COMMON\\_EQM\\',
		"All Files (*);;TEXT Files (*.txt)",
		options=options,
	)

 

 

 

 

	options = QFileDialog.Options()
	options = QFileDialog.DontUseNativeDialog
	fileName, _ = QFileDialog.getOpenFileName(
		None,"please Input .json file name",
		'D:\\Clouds\\PROJECTS\\_COMMON\\_EQM\\',
		"All Files (*);;Text Files (*.json)",
		options=options,
	)
	return fileName
728x90