fsleyes_widgets.filepanel
This module provides the FilePanel class.
- class fsleyes_widgets.filepanel.FilePanel(parent, filePath='', wildcard='*', buttonText='Load', message='Select file')[source]
Bases:
ControlThe
FilePanelis awx.Controlwhich contains a text label and a button. The text label displays a file path, and the button opens a dialog allowing the user to select a new file.Create a new
FilePanel.- Parameters:
parent – Parent
wxobject.filePath – Initial file path to display.
wildcard – File path wildcard to use to restrict what is displayed in the file dialog.
buttonText – Text to display on file dialog button
message – Message to display in file dialog.
- property loadButton
Return a reference to the load button (for testing).
- fsleyes_widgets.filepanel.EVT_FILE_PANEL_EVENT = <wx.core.PyEventBinder object>
Identifier for the
FilePanelEvent.