What's new in DrPython 3.11.4
Apr 22, 2014
- internal: changed path concatenation to os.path.join
- added more Information about operating system into AboutDialog
- warning, if prompt all is switched off replace (sometimes, it is hit by accident, so a mess is afterwards in the file)
- new replacedialog during replaces for faster access ('s' simply skips the current occurance)
- new back button in replacedialog (if a lot of replaces happens, one can go often one or two times to far, with back, it jumps backward and undo the last replace (if one happened)
- plugin dialog (edit indexes) warning, if the user choose close and have changed some plugins
- plugin dialog: info, that restart is needed to take effect of newly arranged plugins
- run script: if the current script is opened and modified, it will be saved automatically befor running the script (practically to minimize save run cycle)
- small "annoying bug" fixed: if source browser is closed, the focus was not in the textdocument (one has to press the mouse button into the document to get it again)
- gtk: if drpython is started in root mode, a red icon appears to show this (also in Aboutdialog (info and icon))
- in c++ styles, there was the current highlight line style missing
- changed files with no extension like fstab (or hidden files like .bashrc) to use python syntax highlighting
New in DrPython 3.11.3 (Apr 22, 2014)
- corrected search with '^' in regex search
- fixed bug in setoptions in drfindreplacedialog
- if findreplaceundercursor and no selection and wo cursor under word, the find dialog will be filled default with last find string
- info in status line about find string
- small correction in find '^' with regular expressions
- added singleinstance checker. with the option --s (singleinstance), you can edit a file without opening a new instance of drpython. useful when editing files with F4 for example in filemanagers.
- info, if no findstring is in find next/find previous.
- added third status bar area
- force opening file (needed, if opened externally by a filemanager with new)
- simplified set 2 spaces function in drstc
- OnCleanUpSpaces and OnCleanUpTabs used doctabwidth
- txtDocument.SetFocus in OnActivate (sometimes, the cursor was not visible after switching back to drpyhton)
- fixed bug with source browser: call wx.After
- fixed bug: no focus after startup on txtdocument (txtDocument.SetFocus)
- default settings changed
- new class (file) drListbox: on gtk, keyboard keys don't zum to entry in list box, in windows do
- in shortcutsdialog, the new drListbox is used
- some cleanup of unnecessary variable (ignoreevent, which was not used)
- plugin about error (wrong text)
- reload file (setselection (pos, pos) instead of setcurrenpos, because the text was selected from the begin until current pos otherwise)
- unbind event idle
- drscript shortcuts sorted for shortcuts dialog
- plugin shortcuts sorted for shortcuts dialog
- hint "restart drpython for updating menu shortcuts", when saving shortcuts
- status widths corrected
- cleared status line3, when executed a new script
- code cleanup (Messagebox, Showmessage)
- shortcut "edit &plugin source" changed to "e&dit plugin source" (p was assigned two times)
- changed to DrFrame.OpenOrSwitchToFile(a)
- OpenOrSwitchToFile with editRecentFiles almost everytime
- fixed bug reload files in onautoreload
- fixed bug (find if no history => traceback)
- DrFrame.windowArray removed (not used)
- Added DrMessageBox and the variable DrFrame.ignore_activate_app_event; reason: if in gtk a messagebox is shown, the application loses the focus and a ACTIVATE_APP is fired again; so a variable should prohibit this
- Handling for linux root files (otherwise, they cannot be saved); called python programm again with gksudo to save that file
- for that a new file drSaveRootFile.py was added
- save file as: now per default suggests current filename
- changed drscrolledmessagedialog, so the user can close the dialog also on gtk with escape key
- drscrolledmessagedialog has now a testcode (run drscrolledmessagedialog.py to test it directly)
- added Shortcutfunction for plugins: AddPluginShortcut_PopUpMenu_Function (adds shortcuts and popup functionality)
- small change in menu: Load Plugin(s) => Load Plugin (anyway onle one plugin can be loaded at the same time)
- suggest last find string, if no matching findstring exist (when findundercursor option is not set)
- suggest last replace option in replace dialog per default
- added document preference: ignore text function keys: if a F key (for example F4) is not assigned, a character is inserted. this can be switched off
- avoid horizontal scrolling with ctrl-pageup/down, if not wished (preferneces document ignore ctrl-pageup/down)
- fixed bug (traceback) in style dialog
- drscrolledmessagedialog (quit also with return key)
- save a copy suggests per default current file name
- dialog after successful save a copy only, if enable feedback is turned on
- cleanup addpluginfunction(s)
- removedAddPluginShortcut_PopUpMenu_Function
- warning and the possibility to exit drpython, if called with singleinstancechecker without running another instance.
- save (after saving it jumps to the beginning of line, instead of keeping current pos) annoying behaviour fixed
- bug fixed (reload and load from backup) didn't really reload the files
- removed complicated query in uncommentregion
- encoding error: display the position of the causing character (about) (if debugmodus is switched on)
- load plugin from index menu is now sorted
- earlier unbind of wx.app event handlers
- lesser undo steps in autoindent
- small change in drscriptmenu, so other files can be called as scriptfiles
- fixed small bug in drscriptmenu (messagebox)
- filedialog => open: if file do not exist, ask to create it
- RunScript: replaced by better code: thanks BlackJack, from german python forum
- fixed bug in drNotebook (promptarray out of index)
- enable in drfiledialog in windows show the hidden files
- traceback, when load plugin from index manuall or save it to default.idx, if currently no other plugin is installed or loaded (thanks for bug report, Blackjack)
- with needs a future import for python 2.5 (bug report and fix by Blackjack, thanks)
- Problem with AutoComp (FindAndComplete) (hopefully fixed, thanks for reporting, BlackJack)
- changed redirect option from --r0 to --r
- fixed no sort issue in findandcomplete show (hint from BlackJack)
- added minimal help, when called with --help
- central version number in one file
- added some drpython events (for the documents using stc control (EVT_DRPY_SETTEXT_START, EVT_DRPY_SETTEXT_END, EVT_DRPY_DRTEXT_ONKEY_DOWN_START, EVT_DRPY_DRTEXT_ONCHAR_START)
- DrText EVT_CHAR: with eventhandler, DRPY_Event can be used
- DrText EVT_KEY_DOWN: with eventhandler, DRPY_Event can be used
- DrText: SetText (is derived from stc), 2 (before and after) DRPY Events can be used
- Versionstring is now again in drpython.py (only once in drpython source), passed to drAboutDialog
- corrected bug with finder: sometimes, after closing a document, the finder (the findstring, ...) was lost, fixed
- called new event function (EVT_ACTIVATE_APP) on deactivate
- used EVT_ACTIVATE_APP for AutoCompCancel CallTipCancel, if they were open at this time
- changed: classbrower: only python files, ignore all other (anyway senseless results for example in txt files, else no other classbrowser (for example c++) is supported (yet)
- default '.txt' for saved regular expressions
- applied patch from BlackJack: "Command line parsing - ID: 3053226", thanks
- copied the list in drSingleChoiceDialog to remain unchanged after sorting
- applied patch from BlackJack: "80 character line - ID: 3042753", thanks
- applied patch from BlackJack: "Do no eval... - ID: 3042074", thanks
- applied patch from BlackJack: "No explicit comparisons against `True` and `False` - ID: 3044882", thanks
- applied patch from BlackJack: "Open files with `open()` - ID: 3044984", thanks
- applied patch from BlackJack: "No self defined IDs anymore` - ID: 3053304", thanks
- applied patch from BlackJack: "Coding cookie recognition` - ID: 3053456", thanks
- applied patch from BlackJack: "Use `wx.FileHistory` - ID: 3053904", thanks
New in DrPython 3.11.2 (Apr 22, 2014)
- preparing for wxPython 2.9 (Flexgridsize with first parameter 0)
- new DrPython event EVT_DRPY_PROMPT_GOTO for use in plugins
- fixed bug in self.SetCaretForeground: this does not affect wxPy 2.8, but 2.9
- fixed bug, added at the end: app.Unbind(wx.EVT_ACTIVATE_APP): this does not affect wxPy 2.8, but 2.9
- relocated error files handling (for wxPython 2.9)
- changed som wx.MessageBox (for wxPython 2.9: it needs a wx.OK or wx.CANCEL, ... additionally to wx.ICON_EXCLAMATION)
- remove migration help functions from DrPython 1.64 to 1.65
- prevent opening prompt when cp1252 is adusted (that lead to a crash)
- added support for running lua scripts, when "Program => run" is selected
- used checkiffileisHTML instead of own query
- for programdirectory: replaced os.path.abspath(sys.argv[0] by __file__, so drpython can be imported in pyhton and a frame can be created.
- get rid of wx.GetApp().GetTopWidow() (also so drpython can be imported in pyhton).
- fixed: bug in Clear menu in edit bookmarks and edit scripts
- in prompt: only characters < ascii 127 are allowed (otherwise drpyhton crashed)
- prompt traceback: added for pattern recognition of lua error output
- added event EVT_DRPY_PROMPT_GOTO
- use default "firefox" instead of "mozilla" for viewing html sites
- changed the function RemoveTrailingWhitespace (it was buggy)
- reduced flicker (viewing eol)
- default F1 as help
- added OnRunPlugin
- added OnRunScript
- updated regexp url
- own file directory for stored reg expressions.
- bug in RectandleReplaceAll fixed
- drscript: scriptfname as member variable (for access from scripts)
- removed member variable DrScript from DrFrame (no use)
- fixed reg ex replacement with no prompt and more infos
- corrected rectangle search without regular expressions and with re regular expressions
- enable/disable checkboxes
- finder pos for selection
- selstart < selend when find in selection
- regular expression search backwards implemented
- Edit Bookmarks: now it is possible to add the current file
- same menu accelerator in gtk as in windows
- take care (and asking) of doubled entries in bookmarks, when adding a new one
- replaced wx.size by tuple (as recommened in wxpython)
- edit plugin soruce dialog uses drSingleChoiceDialog (before wx.SingleChoiceDialog)
- edit drscripts source dialog uses drSingleChoiceDialog (before wx.SingleChoiceDialog)
- DrScript objeckt inserted again (need for example for script RuninTerminal.py)
- drSingleChoiceDialog now supports pageup, pagedown, pos1 and end key for moving around
- drSingleChoiceDialog now supports an optional dialogheader
- edit plugin source now in Optionsmenu
- double click on sidepanel tab caused exception: fixed
- show in statusline the name of the current executed script
- find: ^.*, jump to next line, when search next
- comment, uncomment for lua scripts
- UniDialog for differences gtk and windows
- drSingleChoiceDialog: possibilty to deliver a third button (edit, but can be named otherwise too)
- goto class/block/def start: if the cursor was at the end of the file, it caused an endless loop (drpython freezed)
- reworked run script
- scriptmenu: replaced DrScript by DrScript. (otherwise some script code was not working properly)
- changed, fixed and simplified command line args handling
New in DrPython 3.11.1 (Oct 20, 2009)
- add notes from the next release here.
- in drtext.py two times wx.CallAfter, else Segmentation fault (3.11.0. wxPython Version: 2.8.4.0, wxGTK, unicode, gtk2, wx-assertions-off,
- Python Version: 2.5.1.final, Python Platform: linux2)
- few changes:
- preferences: ignore ctrl-pageupdown key, so it can be used as shortcut.
- but in gtk in find and find history.
- some code cleaning.
- gtk: openimported module didn't work as expected on gtk: keys came twice.
- in drtext.py two times wx.CallAfter, else Segmentation fault (3.11.0. wxPython Version: 2.8.4.0, wxGTK, unicode, gtk2, wx-assertions-off,
- Python Version: 2.5.1.final, Python Platform: linux2)
- bug in drPrinter.py, reported by Luca Falavigna; 'DrPrinter' object has no attribute 'log'; fixed.
- fixed problems on quitting the app
- removed the need of a certain wxpython version
- some Code Cleanup (for example AskExitingDrPython())
- Goto Line on Traceback more universal (with pychecker line now also possible).
- fixed some issues on gtk with wx.Notebook.
- removed unnecessary shebgangs reported by Luca Falavigna, thanks
- DrPython sometimes hangs when opening a python interpreter. patch by Luca Falavigna - dktrkranz, 07/04/2008, thanks
- DrPython crashes if saved file is not available Step to reproduce the crash: 1) Open a new file and save it
- 2) Edit the file, but do not save it 3) Delete the file 4) Close drpython and answer Yes when asked5) Program crashes
- bug reported by Luca Falavigna - dktrkranz, 07/04/2008, thanks.
- open python with cp1252 encoding => crash. no solution => workaround Messagebox and disable this
- statement in prompt with character above ascii 127 crashes the program; no solution => workaround (check characters) Messagebox and disable this