예제 #1
0
파일: file.py 프로젝트: pombredanne/relax
    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)
예제 #2
0
파일: file.py 프로젝트: tlinnet/relax
    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)