コード例 #1
0
ファイル: simfitpage.py プロジェクト: Tandysony/sasview
    def _on_help(self, event):
        """
        Bring up the simultaneous Fitting Documentation whenever the HELP
        button is clicked.

        Calls DocumentationWindow with the path of the location within the
        documentation tree (after /doc/ ....".  Note that when using old
        versions of Wx (before 2.9) and thus not the release version of
        installers, the help comes up at the top level of the file as
        web browser does not pass anything past the # to the browser when it is
        running "file:///...."

    :param event: Triggers on clicking the help button
    """
        _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html"
        if not self.batch_on:
            _PageAnchor = "#simultaneous-fit-mode"
            _doc_viewer = DocumentationWindow(
                self, self.ID_DOC, _TreeLocation, _PageAnchor,
                "Simultaneous/Constrained Fitting Help")
        else:
            _PageAnchor = "#combined-batch-fit-mode"
            _doc_viewer = DocumentationWindow(self, self.ID_DOC, _TreeLocation,
                                              _PageAnchor,
                                              "Combined Batch Fit Help")
コード例 #2
0
 def on_help(self, event=None):
     """
     Show the corfunc documentation
     """
     tree_location = "user/sasgui/perspectives/corfunc/corfunc_help.html"
     doc_viewer = DocumentationWindow(self, -1, tree_location, "",
                                      "Correlation Function Help")
コード例 #3
0
ファイル: converter_panel.py プロジェクト: tothuynga/sasview
 def on_help(self, event):
     """
     Show the File Converter documentation
     """
     tree_location = ("user/sasgui/perspectives/file_converter/"
                      "file_converter_help.html")
     doc_viewer = DocumentationWindow(self, -1, tree_location, "",
                                      "File Converter Help")
コード例 #4
0
ファイル: gpu_options.py プロジェクト: pkienzle/sasview
 def on_help(self, event):
     """
     Provide help on opencl options.
     """
     TreeLocation = "user/gpu_computations.html"
     anchor = "#device-selection"
     DocumentationWindow(self, -1, TreeLocation, anchor,
                         "OpenCL Options Help")
コード例 #5
0
 def on_help(self, event):
     """
     Provide help on opencl options.
     """
     TreeLocation = "user/sasgui/perspectives/fitting/gpu_setup.html"
     anchor = "#device-selection"
     DocumentationWindow(self, -1, TreeLocation, anchor,
                         "OpenCL Options Help")
コード例 #6
0
    def on_help(self, event=None):
        """
        Opens a help window for the slicer parameters/batch slicing window
        :param event:
        :return:
        """
        from sas.sasgui.guiframe.documentation_window import DocumentationWindow

        _TreeLocation = "user/sasgui/guiframe/graph_help.html"
        _doc_viewer = DocumentationWindow(self, wx.ID_ANY, _TreeLocation,
                                          "#d-data-averaging",
                                          "Data Explorer Help")
コード例 #7
0
    def on_help(self, event):
        """
        Bring up Image Viewer Documentation from the image viewer window
        whenever the help menu item "how to" is clicked. Calls
        DocumentationWindow with the path of the location within the
        documentation tree (after /doc/ ....".

        :param evt: Triggers on clicking "how to" in help menu
        """

        _TreeLocation = "user/sasgui/perspectives/calculator/"
        _TreeLocation += "image_viewer_help.html"
        _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "",
                                          "Image Viewer Help")
コード例 #8
0
    def on_help(self, event):
        """
        Bring up the Kiessig fringe calculator Documentation whenever
        the HELP button is clicked.
        Calls DocumentationWindow with the path of the location within the
        documentation tree (after /doc/ ....".  Note that when using old
        versions of Wx (before 2.9) and thus not the release version of
        installers, the help comes up at the top level of the file as
        webbrowser does not pass anything past the # to the browser when it is
        running "file:///...."

    :param evt: Triggers on clicking the help button
    """
        _TreeLocation = "user/sasgui/perspectives/calculator/"
        _TreeLocation += "kiessig_calculator_help.html"
        _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, "",
                                          "Density/Volume Calculator Help")
コード例 #9
0
    def on_help(self, event):
        """
        Bring up the Composite Model Editor Documentation whenever
        the HELP button is clicked.

        Calls DocumentationWindow with the path of the location within the
        documentation tree (after /doc/ ....".  Note that when using old
        versions of Wx (before 2.9) and thus not the release version of
        installers, the help comes up at the top level of the file as
        webbrowser does not pass anything past the # to the browser when it is
        running "file:///...."

    :param evt: Triggers on clicking the help button
    """

        _TreeLocation = "user/sasgui/perspectives/fitting/fitting_help.html"
        _PageAnchor = "#sum-multi-p1-p2"
        _doc_viewer = DocumentationWindow(self, -1, _TreeLocation, _PageAnchor,
                                          "Composite Model Editor Help")