DrPython add-ons
Welcome to another DrPython Page:
Projectpage of DrPython:
http://sourceforge.net/projects/drpython/
Homepage of DrPython:
http://drpython.sourceforge.net/
Here I want to provide some kind of informal stuff of drPython:
Scripts, experimental plugins, screenshots, ...
Personal:
You can think: There are so much editors available, why another one, and why this one?
The first time, I found DrPython, I knew at once, that this is a great project.
(before I was interested in PyPe, which is also fine).
I always wanted to contribute to an open source editor, and this project was ideal.
Python for rapid developement and no compilation, wxPython (free gui environment),
the styled text control for the basement, and the possibility in DrPython to
accomodate my wishes for an editor with plugins and scripts.
Plugins:
CompWord.py: Looks for next/previous fitting word in the text document.ChangeLog.txt
SessionsLight.py: Another Sessions PluginChangeLog.txt
Startup.py: Changes Statusbar display and wildcards order for file open/save dialog.
CleanUpFile.py: Modified version of CheckLineendings and Check indentation on openfile. Also can check for trailing whitespacses.
AutoSave.py: AutoSave on Focus Change to another application.
ScrollFunctions.py: Scrolls to beg, middle or end of current visible Doc Window.
GetLine.py: Get Previous/Next Line with cursor keys: shows current selected line also with indicatores.
bombs.py: Minesweeper clone from wxwidgets demo.bombs.ico in bitmap directory
Scripts:
MyFindAndComplete.py: Modified version of FindAndComplete (behaves different in c and python source files) Searches all Docs currently open.
FillDown.py: Fill down in rectangulare selection. filldown1.jpg filldown2.jpg
mytab.py: If rectangular selection, it adds one space into every line. mytab1.jpg mytab2.jpg
doxygen.py: Script for adding doxygen comments into C++ source files. doxygen1.jpg doxygen2.jpg
MailQuote.py: Add a '>' as first character into every line.
QuickSearchForward.py: Search for the next occurance of the word currently under cursor.
QuickSearchBackward.py: Search for the previous occurance of the word currently under cursor..
InsertDate.py: Inserts current date and time into the document.
CopyCurrentPath.py: Copies current path into the clipboard.
CopyCurrentFile.py: Copies current path and filename into the clipboard..
CSwitchHeaderCpp.py: C++: Switches between header and source file.
RemoveTrailingWhitespaces.py: Removes trailing tabs and spaces at the line endings.
PyCrust.py: Mirrors DrPython Namespace. For exploring variables and Namespace very useful.
DeleteWord.py: Deletes Word under Cursor.
RemoveTrailingWhitespaces.py: Removes Trailing Whitespaces in current Document.
MySplitPanel.py: Opens at first a split panel of the current Doc on the right side, toggles then.
MyCloseSplitPanel.py: Closes the split panel on the right side.
SortLines.py: Sort Lines in Selection or in the whole Document.
CheckFile.py: Checks current document for line endings, indentation and trailing spaces (with line of first occurance and number of occurances).
AllNewPlugins.zip
AllUnOfficial.zip
Ms-Windows Executable:
for Ms-Windows users, who don't have installed Python and wxPython
Restricted Version (without scripts and plugins)
This executables are based on Python 2.4, wxPython 2.5.3.1 and currently DrPython 3.10.8.
the runtime is 2,96 MB and the exe 0,68 MB large (complete about 3,7 MB)
Only start both exes and extract it to the same directory, and start DrPython.exe.
I want to update rarely, it should only show an outline, what Drpython has to offer.
drpython-win32exe-runtime.exe
----------------------------------------------------------------------
drpython_3_10_8-win32exe.exe
----------------------------------------------------------------------
Screenshots of some plugins:
SearchInFiles.png:
ListShortCuts.png:
DocList.png:
FindFiles.png:
Abbreviations.png:
CodeCompletition.png:
----------------------------------------------------------------------
Tipps:
- If you believe, you find a error in the core, notice the traceback.
Please try to duplicate the bug without loading any plugin (rename default.idx to something else and restart DrPython).
- use the Pycrust.py script to view the current namespace with it's current state of variables
- create a test.py script and lay this to a hotkey, you remember easy (I try many things with this, before inserting them into plugins)
- Or use the power of Dynamic DrScript
- Other programes, I use:
* Winmerge (to check from one version of DrPython to another, what is changed) (Windows only) (open source)
* XNView (to make screenshots of dialogs, ... and to measure out sizes of elements (freeware for private use), Alternative: (freeware for private use).
* Total Commander (pack, rename, copy ... files) (Windows only) Shareware, but worth every cent.
- Look at Stc Documentation in: www.yellowbrain.com/stc/index.html
or zipped stc_doc.zip
* Some useful functions, I found and which are not documented:
- CopyRange(firstpos, secondpos) (copies this range into the clipboard)
- CopyText(4, "abcd") (copies "abcd" into clipboard)
- LineLength (x) (returns lengh of line x)
- If a problem appears, use console mode and if you get a traceback, copy it.
If you cannot solve this, please send a bug report to sf project page.
otherwise, the more the better; also please send a bug report to sf project page with the fix.
also provide the information from Help->About (DrPython, wxPython and Python Version).
Frequent reasons: "import" is missing, variable is used before initializing.
use print statements or a debugger to narrow down the problem.
Dismissed:
VirtualSpaces.py: Virtual Space simulation.
It is the an extended KeyBoardMacros plugin.
My attempt to add virtual spaces (bypass the cursor movement restriction with "virtual spaces").
I tried to borrow spaces to add (fill) the line, so the cursor doesn't jump, when
moving up or down some lines.
Also cursor right behavior, I don't like, so it should move right instead of jumping to the next line.
Visit my Guestbook
email: Franz Steinhaeusler (francescoa@users.sourceforge.net)
To do:
Beautify this page :)
Revision History:
04.11.04: Created.
05.11.04: Added Scripts, Plugins and Screenshots.
13.11.04: Added SessionsLight, updated Compword.
25.11.04: Added ListShortCuts.
04.12.04: Added Keyboard Macros plugin with virtual space simulation.
06.12.04: Added RemoveTrailingWhitespaces script.
11.12.04: Added PyCrust NameSpace, updated CompWord.
10.01.05: Added Personal, Tipps and Dismissed Section.
Added Scripts: DeleteWord, RemoveTrailingWhitespaces, MySplitPanel, MyCloseSplitPanel, SortLines, CheckFile.
Added Plugin: AutoSave, ScrollFunctions
Removed ListShortCuts Plugin (Now on DrPython Project Page).
22.01.04: Updated some plugins and scripts, removed CopyWordTo Clipboard (is a member of CopyCutPasteExtend).
31.01.04: added GetLine plugin, updated SessionsLight.
18.02.05: added bombs plugin (Minesweeper clone from wxwidgets demo).
21.02.05: added win32 executable
22.02.05: updated some plugins and scripts
uploaded all my plugins (All new plugins) in a single zip file.
14.09.05: added Plugin Screenshots