mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
23 lines
726 B
Python
23 lines
726 B
Python
import wx
|
|
|
|
###############################################################################
|
|
# rp_file_wx.py
|
|
# @title: Selecteur de fichier (wxPython)
|
|
# @project: Ropy (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()
|