Wednesday, December 21, 2022

PyScripter v4.2.5 released

Yet another hotfix release, PyScripter 4.2.4 is now available at Sourceforge.  A scaling issue in code completion is fixed.  This only affected users whose primary monitor is high-DPI (scaling > 100%).

Thursday, December 15, 2022

PyScripter v4.2.4 released

PyScripter 4.2.4 is now available at Sourceforge. It is hotfix release that has quietly replaced earlier 4.2 versions. The only thing fixed, compared to v4.2.3 is the missing manifest file, resulting in less crispy fonts, if your monitor scaling is greater than 100% (high-DPI monitors).   If your monitor scaling is 100%, there is no need to upgrade.

Tuesday, December 13, 2022

PyScripter v4.2.3 released

PyScripter 4.2.3 is now available at Sourceforge. It is a hotfix release that deals with a regression in the recently released python 3.11.1.  If you are not using this python version, then there is no reason to upgrade from v4.2.2. This version has replaced earlier 4.2 versions.

Wednesday, December 7, 2022

Format your python code using “black”

Black Logo

The python style guide PEP 8 by the creator of the language Guido van Rossum is the universal standard that most python programmers strive to follow.  There are many modules that can format python code to make it compliant with the style guide, but recently one of them, “black” is rapidly becoming the standard.

It is very easy to integrate this module with PyScripter. 

  1. First you need to install it using Tools, Tools, Install Packages with pip
  2. Then, use the menu commands Tools, Configure Tools, Add to add a new external tool
  3. Fill in the dialog box as indicated below

 

black

Set:

Name: Format Selection

Description: Format selected code using the “black” module

Command: $[PythonExe-Short]

 

Name: Format Selection
Description: Format selected code using the “black” module
Command: $[PythonExe-Short]
Parameters: -m black -
Shortcut: Shift+Alt+F
Context: Selection Available
Std. Input: Selection
Std. Ouput Selection

Also check “Hide console” and “UTF8 IO” and press  OK.

You are all set.   Select some code or press Ctrl+A to select the whole file and invoke the Format Selection command using the shortcut or via the Tools menu.

This tool definition is available with release 4.2.2 in new installations, but you need to add it manually to existing installations.

PyScripter v4.2.2 released

PyScripter 4.2.2 is now available at Sourceforge. It is hotfix release that has quietly replaced earlier 4.2 versions.  It fixes a number of reported issues, but also includes new features.

New features:

  • The dated Internet Explorer replaced with the Edge browser
  • Added Format Selection external tool using the "black" module
  • New IDE option 'Automatic Restart' (#1188)
  • Recovery of unsaved files on system shutdown or application crash
  • New IDE command "Zoom Reset" Atl+Num 0  (#650)
  • Two new styles added: Windows 11 Polar Dark and Windows 11 Polar Light

Issues addressed: