def select_file(self, event=None): """Select a file. @keyword event: The wx event. @type event: wx event """ # The file selection object (initialised in this function and not __init__() so that the working directory is more logical). dialog = RelaxFileDialog(self.parent, field=self.field, message="File selection", defaultFile=self.default, wildcard=self.wildcard, style=self.style) # Show the dialog and catch if no file has been selected. if status.show_gui: dialog.select_event(event)
def select_file(self, event=None): """Select a file. @keyword event: The wx event. @type event: wx event """ # The file selection object (initialised in this function and not __init__() so that the working directory is more logical). dialog = RelaxFileDialog(self.parent, field=self.field, message="File selection", defaultFile=self.default, wildcard=self.wildcard, style=self.style) # Show the dialog and catch if no file has been selected. if status.show_gui: dialog.select_event(event)