2023-02-05 18:17:16 +01:00
|
|
|
import wx
|
|
|
|
|
|
|
|
###############################################################################
|
2023-02-06 14:40:00 +01:00
|
|
|
# rp_file_wx.py
|
2023-02-05 18:17:16 +01:00
|
|
|
# @title: Selecteur de fichier (wxPython)
|
2023-02-06 14:40:00 +01:00
|
|
|
# @project: Ropy (Blender-EduTech)
|
2023-02-05 18:17:16 +01:00
|
|
|
# @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())
|
2023-02-06 14:40:00 +01:00
|
|
|
openFileDialog.Destroy()
|