Changeset fe76fba in sasview
- Timestamp:
- May 22, 2018 6:53:15 AM (7 years ago)
- Branches:
- ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
- Children:
- db7d2c7
- Parents:
- 0459591
- git-author:
- Piotr Rozyczko <rozyczko@…> (05/22/18 06:52:37)
- git-committer:
- Piotr Rozyczko <rozyczko@…> (05/22/18 06:53:15)
- Location:
- src/sas/qtgui
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/qtgui/Calculators/media/python_shell_help.rst
r417c03f rfe76fba 13 13 ----------- 14 14 15 This is a Python shell/editor provided with WxPython.15 This is a Jupyter Python QtConsole shell. 16 16 17 17 For the help about Python, visit the website http://docs.python.org/tutorial/ 18 18 19 .. note:: This shell/editor has its own help, but the Help() and Credits() calls do not work on Macs. 19 For the help about QtConsole, visit the website https://ipython.org/ipython-doc/3/interactive/qtconsole.html 20 20 21 The NumPy, SciPy, and Matplotlib, etc, libraries are shipped with SasView and so functions from these can be imported into the shell /editor, however, some functionality may not work.21 The NumPy, SciPy, and Matplotlib, etc, libraries are shipped with SasView and so functions from these can be imported into the shell, however, some functionality may not work. 22 22 23 23 .. image:: new_pycrust_example.png 24 24 :align: center 25 25 26 When a Python file, for example a fitting model, is created or loaded with the *New* or *Open* options from the menu, a new tab opens with an editing notebook. 26 .. 27 When a Python file, for example a fitting model, is created or loaded with the *New* or *Open* options from the menu, a new tab opens with an editing notebook. 27 28 28 .. image:: new_pycrust_example_2.png29 :align: center29 .. image:: new_pycrust_example_2.png 30 :align: center 30 31 31 If a Python (.py) model has a linked C (.c) subroutine *in the same folder* then the shell/editor will open both! However input focus is usually transferred to the tab with the .c file.32 If a Python (.py) model has a linked C (.c) subroutine *in the same folder* then the shell/editor will open both! However input focus is usually transferred to the tab with the .c file. 32 33 33 To compile a model, select *Run* > *Check Model* from the shell/editor menu. If the model contains a unit test (which it should!!!) then this will also run and a popup window will report the success/failure of the test.34 To compile a model, select *Run* > *Check Model* from the shell/editor menu. If the model contains a unit test (which it should!!!) then this will also run and a popup window will report the success/failure of the test. 34 35 35 36 .. ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ 36 37 37 .. note:: This help document was last changed by Steve King, 10Oct201538 .. note:: This help document was last changed by Piotr Rozyczko, 22 May 2018 -
src/sas/qtgui/MainWindow/GuiManager.py
ra0ed202 rfe76fba 94 94 # Set up the status bar 95 95 self.statusBarSetup() 96 97 # Needs URL like path, so no path.join() here98 self._helpLocation = GuiUtils.HELP_DIRECTORY_LOCATION + "/index.html"99 96 100 97 # Current tutorial location … … 191 188 Open a local url in the default browser 192 189 """ 193 #location = os.path.join(GuiUtils.HELP_DIRECTORY_LOCATION, url)194 190 location = GuiUtils.HELP_DIRECTORY_LOCATION + url 195 191 try: … … 814 810 TODO: use QNetworkAccessManager to assure _helpLocation is valid 815 811 """ 816 helpfile = " index.html"812 helpfile = "/index.html" 817 813 self.showHelp(helpfile) 818 814
Note: See TracChangeset
for help on using the changeset viewer.