mirror of
https://forge.apps.education.fr/blender-edutech/jumeaux-numeriques.git
synced 2024-01-27 06:56:18 +01:00
22 lines
720 B
Python
22 lines
720 B
Python
import wx
|
|
|
|
###############################################################################
|
|
# twin_file_wx.py
|
|
# @title: Selecteur de fichier (wxPython)
|
|
# @project: Blender-EduTech
|
|
# @lang: fr
|
|
# @authors: Philippe Roy <philippe.roy@ac-grenoble.fr>
|
|
# @copyright: Copyright (C) 2023 Philippe Roy
|
|
# @license: GNU GPL
|
|
###############################################################################
|
|
|
|
app = wx.App()
|
|
frame = wx.Frame(None, -1, 'win.py')
|
|
# frame.SetDimensions(0,0,200,50)
|
|
|
|
openFileDialog = wx.FileDialog(frame, "Sélection du fichier de commande", "", "",
|
|
"Fichier Python (*.py)|*.py", wx.FD_OPEN | wx.FD_FILE_MUST_EXIST)
|
|
|
|
openFileDialog.ShowModal()
|
|
print(openFileDialog.GetPath())
|
|
openFileDialog.Destroy() |