Inhaltsverzeichnis
Innovations
Version 7.01
Starting with version 7.01, the qt_message_handler is automatically inserted into the python_init.py script.
Version 7.00
Support for debugging of Qt apps
GuiPy offers a built-in GUI designer that greatly simplifies GUI creation. However, when implementing event methods, it's easy to make typos, call nonexistent methods, or forget to convert to appropriate data types.
Until now, GuiPy couldn't display messages about such errors due to Qt's error handling. Debugging was the method used to find such errors. The developer of PyScripter has now developed a solution that displays these error messages. This makes it very easy to find and fix errors and get a functioning GUI app.
What to do
For an existing GuiPy installation you have to put these lines into the script python_init.py
def qt_message_handler(mode, context, message): print(message) try: from PyQt6.QtCore import qInstallMessageHandler qInstallMessageHandler(qt_message_handler) except: pass
For a normal installation you find the script python_init.py in the folder:
C:\Users\%USERNAME%\AppData\Roaming\GuiPy\
For a portable installation you find the script in the folder of GuiPy.exe.
Use Tools/Configuration and press the „Dump“ button to show the folders (for other ini files).
A fresh installation will generate the required script python_init.py. An update will not change this script, as custom extensions may already be present.
How to use
If your app exits with an error, it will be displayed in the interpreter window. Double-click the last line of the error message to place the cursor in the error line. Read the error message carefully so you can understand it and fix the problem.
In the example, we forgot that self.aBlock.get_Nonce() returns an integer that must be converted with „str“ so that it can be displayed in a Qt LineEdit with self.leNonce.setText(str(self.aBlock.get_Nonce())).
Version 5.11
Multi-caret and multi-selection editing
Multi-caret editing allows you to activate multiple carets (blinking cursors in the text) within the active file. Each caret works independently of every other caret and most editing operations are performed at all caret positions simultaneously.
Mouse
| Alt + mouse click | adds a new caret |
| Alt + double mouse click | highlights a word and adds a caret |
| Alt + triple mouse click | highlights a line and adds a caret |
| Alt + mouse movement | highlights text and adds a caret |
| Alt + Shift + mouse click/movement | highlights text in column mode and adds many carets |
Keyboard
| Esc | ends multi-caret editing |
| Alt + Shift + Up/Down/Page Up/Page Down | sets new carets in column mode |
| Alt + Shift + Left/Right | highlights text in column mode and adds carets |
| Alt + End | adds carets to the end of all lines in the current text selection |
| Ctrl + W | adds the next matching word to the current text selection and adds a caret |
| Shift + Ctrl + W | selects all matching occurrences of a word and adds a caret each time |
In multi-cursor mode you can also use the clipboard.
On the page Multi-caret and multi-selection editing the functions of multi-cursor editing are presented in videos.


