Help
Help
DrPython: Help
================
Introduction
=============
Built Using
------------
Icons from:
Donate!
--------
Installation
=============
.. code-block:: python
#!/usr/bin/env python
You can manually set the path used for storing preferences:
Support
--------
Found a bug? Want to see something change?
Have a feature request? Stop by the `DrPython Sourceforge
Project Page <http://www.sourceforge.net/projects/drpython/>`_.
Post in the forum, or formally submit a bug/feature request.
I highly recommend starting a discussion on possible
features/changes. Part of the power of open source is the
power of the users and developers to engage in discourse
about a project, its design and its uses.
Features
=========
Bookmarks
----------
Bookmarks are pretty straighforward: there are Bookmarks, and there are Bookmark
Folders.
Check Syntax
-------------
Runs the python built in 'compile', then tabnanny, on the current file. Reports
syntax and indentation errors.
Note that this only checks the syntax for the current file.
Encoding Support
-----------------
.. note::
The following only applies if your version of wxPython was built with
unicode support:
If you want to use a non ascii encoding (like latin-1 or unicode (utf8)),
you need to set some preferences first. (In the event of a bad encoding,
drpython will warn you via standard output (if the problem is in the file dialog
or prompt), or via a dialog (if the problem occurs while saving or opening a file).
.. code-block:: python
DrPython will try the encoding 'xyz' for the file first.
Find/Replace
--------------
( ) < > [ ] { }
This means:
.. code-block:: python
tree
dog(threat)
dogs
dog(tre
.. code-block:: python
tree
dog(treat
dogs
dog(
.. note::
.. code-block:: python
if True:
print "Hallo"
# Comment
print "Hello again"
``if True:`` is the start of the block; ``print "Hello again"`` is the end.
Goto Traceback
---------------
.. code-block:: pytb
.. warning::
Shortcuts
----------
.. note::
.. note::
The Tab and Enter keys are used for code related
to indentation in the document, and :kbd:`Enter` + the arrow keys
are used behaviour specific to the prompt. Setting these
keys in the shortcuts may cause DrPython to behave incorrectly.
.. note::
.. note::
=================== ==================
Key Default shortcut
=================== ==================
Ctrl + N New File
Ctrl + O Open File
Ctrl + S Save File
Ctrl + W Close File
.. ..
Ctrl + M Open Imported Module
.. ..
F9 Select Previous Document
F10 Select Next Document
.. ..
F7 Open a Python interpreter
Ctrl + E Run current program
Ctrl + D End current program / Python interpreter
.. ..
Ctrl + R Replace
Ctrl + F Find
F3 Find Next
Shift + F3 Find previous
.. ..
Ctrl + G Go to line
Ctrl + B Go to block start
Ctrl + Shift + B Go to block end
Ctrl + F8 Source Browser Go To
.. ..
Ctrl + Enter Find and complete
.. ..
F6 Toggle view prompt
F5 Toggle maximise
F8 Toggle source browser
Ctrl + Shift + W Toggle view whitespace
.. ..
Ctrl + P Print file
Ctrl + Shift + P Print prompt
.. ..
Ctrl + [ Comment
Ctrl + ] Uncomment
Ctrl + I Indent
Ctrl + Shift + I Dedent
.. ..
Ctrl + A Select all
Ctrl + Z Undo
Ctrl + Y Redo
Ctrl + X Cut
Ctrl + C Copy
Ctrl + V Paste
Ctrl + + Zoom in
Ctrl + - Zoom out
Ctrl + Shift + U Uppercase
Ctrl + U Lowercase
=================== ==================
Line Endings
-------------
.. note::
Some menu items act on the Text Control currently with focus.
Toggle Whitespace Visible is one such item.
If the focus is on the File text control, then selecting
this menu item will cause the whitespace to either become
visible or invisible in that control.
Pop Up Menu
-------------
The Pop Up Menu is the menu that pops up when you right
click on the Document, or the Prompt. You can customize
this menu to handle DrPython functions, DrScripts, or plugins.
Note that each item on the Pop Up Menu must have a distinct
name for everything to work properly.
Rectangular Selection
-----------------------
Regular Expressions
--------------------
Open a file, click run, and you are set to go. If your
program takes arguments, select "Set Arguments" from the
menu or toolbar.
Note the right field in the status bar tells you if the
program is running. Also note that the "End" button is
enabled, and "Run", "Set Arguments", and "Python Debugger"
are disabled.
When the program has ended, the right status bar field
goes blank, "End" is disabled, and "Run", "Set Arguments",
and "Python Debugger" are enabled.
Shell Commands
---------------
Source Browser
---------------
Source Browser Go To
---------------------
The typed text is echoed in the top text control. The next
two text controls shows the line number of the selected
item, as well as the class or function the item is defined in.
(The filename is used if no class or function is found).
Status Bar
-----------
| The Status Bar displays some useful information. The left bar displays:
| [*current line*] [*current column*] [*line ending type*] [*insert/overtype*]
[*indentation type*]
| The right bar displays program/Python status, for example ``Running Python
Interpreter``.
Tool Bar
---------
Tracebacks
-----------
.. code-block:: pytb
View In Panel
--------------
Notes
======
DrPython cannot handle everything.
Please note that if you type the color in for the font style
dialog, any bad characters (not 0-9 or A-F) will create
a warning the moment you enter them. If the string is not
properly formated ('#' followed by 6 characters), the
sliders will be disabled. Upon hitting OK, any invalid
color string will be ignored, and DrPython will revert
to the last value for that color string.