/
frmPyIDEMain.pas
5215 lines (4761 loc) · 181 KB
/
frmPyIDEMain.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{-----------------------------------------------------------------------------
Unit Name: frmPyIDEMain
Author: Kiriakos Vlahos
Date: 11-Feb-2005
Purpose: The main form of the Pytnon IDE
History: v 1.1
Improved Python Syntax highlighting
HTML documentation and disassembly views (Tools, Source Views menu)
TODO list view
Find and Replace in Files
Powerful parameter functionality (see parameters.txt)
Parameterized Code Templates (Ctrl-J)
Accept files dropped from Explorer
File change notification
sys.stdin and raw_input implemented
Choice of Python version to run via command line parameters
External Tools (External run and caputure output)
Integration with Python tools such as PyLint
Run Python Script externally (highly configurable)
Persist and optionally reopen open files
Bug fixes
History: v 1.2
Updated the User Interface using Themes
Messages History
Previous/Next identifier reference (as in GExperts)
Find Definition/Find references using BicycleRepairMan
Find definition by clicking as in Delphi
Reduced flicker on start and exit and somewhat on resizing**
Converting line breaks (Windows, Unix, Mac)
Detecting loading/saving UTF-8 encoded files
Help file and context sensitive Help
Check for updates
History: v 1.3
Code completion in the editor (Press Ctrl+Space while or before typing a name)
Parameter completion in the editor (Press Shift+Ctrl+Space)
Find definition and find references independent of
BicycleRepairMan and arguably faster and better
Find definition by clicking works for imported modules and names
Revamped Code Explorer Window featuring incremental search, properties,
global variables, docstrings in hints etc.
A new feature-rich Python code parser was developed for implementing the above
Improved the Variable Windows
shows interpreter globals when not debugging and Doc strings
Improved code and parameter completion in the interactive interpreter
Integrated regular expression tester
Code and debugger hints
Set the current directory to the path of the running script
Added IDE option MaskFUPExceptions for resolving problems in importing Scipy
Tested with FastMM4 for memory leaks etc. and fixed a couple of related bugs
Note on Code and Parameter completion:
The code and parameter completion should be one of the best you can
find in any Python IDE. However,if you find that code and parameter
completion is not very accurate for certain modules and packages
such as wxPython and scipy you can achieve near perfect completion
if you add these packages to the IDE option "Special Packages"
(comma separated text). By default it is set to "wx, scipy". Special
packages are imported to the interpreter instead of scanning their
source code.
History: v 1.5
New Features
Unit test integration (Automatic generation of tests, and testing GUI)
Added highlighting of HTML, XML and CSS files
Command line parameters for scripts run internally or debugged
Conditional breakpoints
Persistence of breakpoints, watches, bookmarks and file positions
Save and restore IDE windows layouts
Generate stack information when untrapped exceptions occur and give
users the option to mail the generated report
Running scripts does not polute the namespace of PyScripter
Names in variables window are now sorted
Allow only a single Instance of Pyscripter and open command line
files of additional invocations at new tabs
Interpreter window is now searchable
Added option to File Explorer to browse the directory of the Active script
New distinctive application icon thanks to Frank Mersmann and Tobias Hartwich
IDE shortcut customization
File Explorer autorefreshes
Improved bracket highlighting
Copy to Clipboard Breakpoins, Watches and Messages
User customization (PyScripter.ini) is now stored in the user's
Application Data direcrory to support network installations(breaking change)
To restore old settings copy the ini file to the new location.
Bug fixes
Resolved problems with dropping files from File Explorer
Restore open files options not taken into account
Resolved problems with long Environment variables in Tools Configure
Resolved problems with help files
Reduced problems with running wxPython scripts
Changing the Python Open dialog filter did not affect syntax highlighting
CodeExplorer slow when InitiallyExpanded is set
Help related issues
Other fixes.
History: v 1.7.1
New Features
Unicode based editor and interactive interpreter
Full support for Python source file encodings
Support for Python v2.5 and Current User installations
Check syntax as you type and syntax hints (IDE option)
Tab indents and Shift-Tab unindents (Editor Options - Tab Indents)
Editor Zoom in/out with keyboard Alt+- and Ctrl+mouse wheel
Improved Debugger hints and completion in the interpreter
work with expressions e.g. sys.path[1].
for debugger expression hints place the cursor on ')' or ']'
Improved activation of code/debugger hints
IDE options to Clean up Interpreter namespace and sys.modules after run
File Open can open multiple files
Syntax highlighting scheme selection from the menu
File filters for HTML, XML and CSS files can be customized
Option to disable gutter Gradient (Editor Options - Gutter Gradient)
Option to disable theming of text selection (Editor Options - theme selection)
Option to hide the executable line marks.
Active Line Color Editor option added. Set to None to use default background
Files submenu in Tabs popup for easy open file selection
Add Watch at Cursor added to the Run menu and the Waches Window popup menu
Pop up menu added to the External Process indicator to allow easy termination of such processes
If the PyScripter.ini file exists in PyScripter directory it is used in preference to the User Directory
in order to allow USB storage installations
Editor options for each open file are persisted
Improved speed of painting the Interpreter window
Auto close brackets
Interactive Interpreter Pop up menu with separately persisted Editor Options
Toggle comment (Ctrl+^) in addition to comment/uncomment
File Explorer improvements (Favorites, Create New Folder)
File Templates
Windows Explorer file association (installation and IDE option)
Command line history
Color coding of new and changed variables in the Variables Window
Repeat scrolling of editor tabs
Massively improved start up time
Faster Python source file scanning
Bug fixes
Gutter glyphs painted when gutter is invisible
Bracket highlighting related bugs
Selecting whole lines by dragging mouse in the gutter sets breakpoint
Speed improvements and bugfixes related to layouts
Error in Variable Windows when showing dictionaries with non string keys
File notification error for Novell network disks
Wrong line number in External Run traceback message
No horizontal scroll in output window
Code completion Error with packages containing module with the same name
Problems with sys.stdin.readline() and partial line output (stdout) statements
Infinite loop when root of package is the top directory of a drive
Infinite loop with cyclical Python imports
History: v 1.7.2
New Features
Store toolbar positions
Improved bracket completion now also works with strings (Issue #4)
Bug fixes
Bracket highlighting with non default background
Opening wrongly encoded UTF8 files results in empty module
File Format (Line End) choice not respected
Initial Empty module was not syntax highlighted
Save As dialog had no default extension set
Unit Testing broken (regression)
Gap in the default tool bar (Issue #3)
History: v 1.9.9.6
New Features
Remote interpreter and debugger
Python 2.6, 3.0 and 3.1 support
Project Explorer supporting multiple run configurations with advanced options
New debugger command: Pause
Execute selection command added (Ctrl-F7)
Interpreter command history improvements:
- Delete duplicates
- Filter history by typing the first few command characters
- Up|Down keys at the prompt recall commands from history
Code Explorer shows imported names for (from ... import) syntax (Issue 12)
Improved sort order in code completion
Save modified files dialog on exit
Finer control on whether the UTF-8 BOM is written
- Three file encodings supported (ANSI, UTF-8, UTF-8 without BOM)
IDE option to detect UTF-8 encoding (useful for non-Python files)
IDE options for default line breaks and encoding for new files
Warning when file encoding results in information loss
IDE option to position the editor tabs at the top
IDE window navigation shortcuts
Pretty print interpreter output option (on by default)
Pyscripter is now Vista ready
Docking window improvements
PYTHONDLLPATH command line option so that Pyscripter can work with unregistered Python
Watches Window: DblClick on empty space adds a watch, pressing Delete deletes (Issue 45)
Wrapping in Search & Replace (Issue 38)
New IDE Option "Save Environment Before Run" (Issue 50)
New IDE command Restore Editor pair to Maximize Editor (both work by double clicking the TabControl)
New IDE Option "Smart Next Previous Tab" (z-Order) on by default (Issue 20)
Word Wrap option exposed in Editor Options
New File Reload command
Import/Export Settings (Shortcuts, Highlighter schemes)
New IDE option "Auto-reload changed files" on by default (Issue 25)
New menu command to show/hide the menu bar. The shortcut is Shift-F10 (Issue 63)
New command line option --DPIAWARE (-D) to avoid scaling in VISTA high DPI displays (Issue 77)
New command line option --NEWINSTANCE (-N) to start a new instance of PyScripter
You can disable a breakpoint by Ctrl+Clicking in the gutter
Syntax Errors are indicated by icon in the TabControl (Issue 93)
Command to jump to the first syntax error (Shift+Ctrl+E)
New Firefox-like search/replace interface
Incremental Search (Issue 100)
New command "Highlight search text" (Shift+Ctrl+H)
New command line option --DEBUG (-B) to use debug version of Python dll (Issue 108)
New command "Word wrap" visible in the Editor toolbar (Issue 112)
New command "Go to Debugger Position" (Issue 118)
The size of the auto completion list is now persisted
Split Editor View (Issue 31)
New parameter $[CmdLineArgs] that returns the active command line arguments
and can be used with external tools
New IDE options "Editor code completion" and "Interpreter code completion"
which can be used to disable code completion
New IDE option "Show Tab Close Button"
New debugger command "Post mortem" (Issue 26)
New IDE option "Post mortem on exception"
Auto-resizing the fields of list views by double clicking on column separators
Advanced search and replace external tool added (uses re.sub)
Enhanced Execute Selection command (Issue 73)
Two new IDE options added (Dock Animation Interval and Dock Animation Move Width - Issue 134)
Toolbar customization
Two new IDE options added ("Interpreter History Size" and "Save Command History") (Issue 131)
Cut and copy without selection now cut and copy the current line (as in Visual Studio, Issue 64)
Removed the Interpeter options "Clean up Namespace" and "Clean up sys.modules"
Improved HTML, XML highlighting with code completion and Web preview
C/C++ highlighting added
Two new interpreter commands added: Copy without prompts, and Paste with prompts (Issue 183)
Localization using gettext
YAML highlighter added
Ability to run initialization scripts (see help file)
Bug fixes
Shell Integration - Error when opening multiple files
Configure External Run - ParseTraceback not saved properly
Order of tabs not preserved in minimised docked forms
sys.argv contained unicode strings instead of ansi strings
Bug fixes and improvements in Editor Options Keystrokes tab (Issue 6)
Better error handling of File Open and File Save
Page Setup Header and Footer not saved (Issue 7)
Hidden Tabbed windows reappearing when restarting
Duplicate two-key editor command not detected
"Clean up namespace" and "Clean up sys modules" settings
become effective after restarting PyScripter
Exception when setting the Active Line Color in Editor Options dialog
Raw_input does not accept unicode strings
Error in docstring extraction (Issue 11)
Fixed some problems with the toggle comment command
Fixed rare bug in restoring layout
Code tips wrong if comments are present among parameters (Issue 15)
Notification of file changes can miss files (Issue 17)
Certain syntax coloring options were not saved
ToDo List did not support encoded files and unicode
ToDo List did not support multiline comments (Issue 14)
Fixed bug in IDE Shortcuts dialog
Swapped the positions of the indent/dedent buttons (Issue 23)
Syntax highlighter changes to the interpreter are not persisted
Multiple target assignments are now parsed correctly
Gutter gradient setting not saved
Handling of string exceptions
Disabling a breakpoint had no effect
Tab order not preserved when restarting PyScripter
Disassembly and Documentation views not working with remote engines
PyScripter "freezes" when displaying modal dialogs when running GUI scripts with remote engines
More robust "Reinitialize" of remote Python engines (Issues 143, 145)
Shift-Tab does not work well with the Trim Trailing Spaces editor option
Issues 28, 32, 39, 40, 41, 46, 47, 48, 49, 52, 55, 56, 57, 65, 66, 67, 70,
71, 72, 74, 75, 76, 81, 82, 83, 86, 88, (89), 90, 91, 92, 94, 96, 98, 99
100, 102, 105, 106, 107, 109, 113, 117, 119, 120, 122, 123, 125,
132, 134, 135, 136, 137, 138, 139, 140, 141, 146, 147, 150, 153, 155,
160, 164, 165, 166, 167, 168, 169, 171, 174, 178, (182), 186,
193, 195, 196, 197, 198, 201, 202, 204, 206, 208, 212, 219, 226,
228, 229, 234, 235, 237, 253, 261 fixed
History: v 1.9.9.7
New Features
Updated theme engine with customizable themes
Python 3.1 support
Bug fixes
Issues 269, 273, 287, 291, 292
History: v 2.0
New Features
Support for Python 2.7
Moved to Rpyc v3.07, now bundled with PyScripter
IDE Option "Reinitialize before run" was added defaulting to True
The default Python engine is now the remote engine
Spanish translation by Javier Pim�s (incomplete) was added
Bug fixes
Issues 236, 304, 322, 333, 334
History: v 2.1.1
New Features
Support for Python 3.2
New IDE Option added "Jump to error on Exception" (Issue 130)
New IDE Option added "File template for new Python scirpts" (Issue 385)
New IDE Option added "Auto completion font" (Issue 365)
French translation by Groupe AmiensPython added
Bug fixes
Issues 297, 307, 346, 354, 358, 371, 375, 376, 382, 384, 387, 389
History: v 2.3.3
New Features
Native unicode strings throught (speed improvements on XP)
Revamped Code Explorer (Issues 192, 163, 213, 225)
Improvements to Code completion
- Auto-completion for the import statement in Python 2.5 and later (Issue 230)
- Processing of function return statements
- Background module parsing and caching of parsed modules
Start-up Python scripts pyscripter_init.py and python_init.py. See help file for details.
Imporved "Match Brace" (Issue 426) and New Editor Command "Select to brace"
Italian translation by Vincenzo Demasi added
Russian translation by Aleksander Dragunkin added
New IDE option "Highlight selected word" (Issue 404)
New IDE option "Use Python colors in IDE"
New Edit command "Copy File Name" available at the contex menu of the tab bar
New commands "Previous Frame", "Next Frame" to change frame using the keyboard (Issue 399)
JavaScript and PHP Syntax Highlighters added
Issues addressed
103, 239, 267, 270, 271, 294, 317, 324, 343, 378,
395, 403, 405, 407, 411, 412, 413, 419, 421, 422,
425, 432
History: v 2.3.4
New Features
Compatibility with Python 3.1.3rc, 3.2a4
Add watches by dragging and dropping text
Ctrl + Mouse scroll scrolls whole pages in print preview
Search for custom skins first in the Skins subdirectory of the Exe file if it exists
Issues addressed
430, 434, 435, 439, 440, 441, 443, 446
History: v 2.4.1
New Features
Side-by-side file editing (Issue 214)
Enhanced regular expression window (findall - Issue 161)
Open file at a specific line:column (Issue 447)
Issues addressed
Reduced flicker when resizing form and panels
415, 437, 449
History: v 2.4.3
New Features
100% portable by placing PyScripter.ini in the PyScripter exe directory
Ctrl+Mousewheel for zooming the interpreter (Issue 475)
Show docstrings during completion list (Issue 274)
New IDE Option "File Change Notification" introduced with possible values Full, NoMappedDrives(default), Disabled (Issue 470)
Background color for Matching and Unbalanced braces (Issue 472)
New IDE option "Case Sensitive Code Completion" (default True)
New IDE option "Complete Python keywords" (default True)
New IDE option "Complete as you type" (default True, Issue 473)
New IDE option "Complete with word-break chars" (default True)
New IDE option "Auto-complete with one entry" (default True, Issue 452)
Issues addressed
Command line history not saved
Editing a watch to an empty string crashes PyScripter
Replace in Find-in-Files now supports subexpression substitution (Issue 332)
Import statement completion does not include builtin module names
461, 463, 468, 471, 474, 478, 488, 496, 504, 508,
509, 511, 512, 515, 525, 526, 527, 528, 532, 559, 560
History: v 2.5.1
New Features
This is the first joint 32-bit and 64-bit version release
Python 3.3 support added
Recent Projects menu item added
Expandable lists and tuples in the Variables window (Issue 583)
Expandable watches as in the Variables window (Issue 523)
Basic support for Cython files added (Issue 542)
New interpreter action Paste & Execute (Issue 500) Replaces Paste with Prompt
New PyIDE option "Display package names in editor tabs" default True (Issue 115)
New search option "Auto Case Sensitive" (case insensitive when search text is lower case)
The Abort command raises a KeyboardInterrupt at the Remote Engine (Issue 618)
Incremental search in the Project Explorer matches any part of a filename (Issue 623)
New IDE option "File line limit for syntax check as you type" default 1000
Issues addressed
516, 348, 549, 563, 564, 568, 576, 587, 591, 592,
594, 597, 598, 599, 612, 613, 615
History: v 2.5.1
New Features
Issues addressed
639, 657, 673
History: v 2.6
New Features
Compatibility with Python 3.4
History: v 3.0
New Features
Python 3.5, 3.6 and 3.7 support
New Style Engine (VCL Styles) with high quality choices
Visual Style Preview and selection (View, Select Style)
Visual Source highligther theme selection (Editor Options, Select theme)
German Translation added
History: v 3.1
New Features
Code folding
Indentation lines
New IDE option "Compact line numbers"
pip tool added
Internal Interpreter is hidden by default
Kabyle language added
Issues addressed
16, 571, 685, 690, 718, 721, 765, 814, 836
History: v 3.2
New Features
Dpi awareness (Issue 769)
Issues addressed
#705 #711 #717, #748
History: v 3.3
New Features
Thread debugging (#455)
Much faster Python output redirection
Form Layout and placement stored in PyScripter.local.ini
Issues addressed
#659, #827, #848, #849
History: v 3.4
New Features
Switch Python Engines without exiting PyScripter
Faster loading times
Initial support for running Jupyter notebooks inside PyScripter
Syntax highlighting for JSON files
New IDE option "Style Main Window Border"
Find in Files and ToDo folders can include parameters (#828)
Issues addressed
#627, #852, #858, #862, #868, #872
History: v 3.4.2
New Features
New Edit Command Read Only (#883)
Files opened by PyScripter from the Python directory during debugging
are read only by default to prevent accidental changes.
Close All to the Right Editor command added (#866)
New editor parameter [$-CurLineNumber] (#864)
New IDE Option "File Explorer background processing'. Set to false
if you get File Explorer errors
Console output including multiprocessing is now shown in interpreter #891
Issues addressed
#645, #672, #722, #762, #793, #800, #869, #879, #889, #890,
#893, #896, #898, #899, #906
History: v 3.5
New Features
Open and work with remote files from Windows and Linux machines as if they were local
Run and Debug scripts on remote Windows and Linux machines using SSH
Python 3 type hints used in code completion
Connection to Python server with Windows named pipes. Avoids firewall issues.
Requires the installation of pywin32 (pip install pywin32).
IDE option to force the use of sockets for connection to the Python server. (default True)
New Editor commands Copy Line Up/Down (Shift+Alt+Up/Down) and
Move Line Up/Down (Alt + Up/Down) as in Visual Studio
PyScripter icons given a facelift by Salim Saddaquzzaman
Upgraded rpyc to 4.x. As a result Python 2.5 is no longer supported.
Issues addressed
#501, #682, #907
History: v 3.6
New Features
Much faster Remote Engine using asynchronous Windows named pipes if pywin32 is available.
IDE option to force the use of sockets for connection to the Python
server now defaults to False
Enhancements to the SSH Engine - now compatible with PuTTY
Execute system commands in the interpreter with !. Supports parameter substitution.
Clickable status panels with Python version and engine type
Text drag & drop between PyScripter and other applications (#554)
Triple-click selects line and Quadraple-click selects all
Double-click drag selects whole words - triple-click drag selects whole lines
Consistent syntax color themes accross supported languages (#855)
New IDE option "Trim trailing spaces when saving files" (#667)
New IDE Option 'Step into open files only'. Defaults to False. (#510)
Localization of the installer
Issues addressed
#624, #743, #857, #904, #922, #927, 928, #929, #936
History: v 3.6.1
New Features
Python 3.8 support. Dropped support for Python 3.0 and 3.1.
Compatibility with conda distributions
JSON and YAML file templates added
Three new styles added (Windows10BlackPearl, Windows10BlueWhale, Windows10ClearDay)
Translation improvements
"Always Use Sockets" IDE option is True by default (#938)
Issues addressed
#311, #941, #955
History: v 3.6.2
New Features
Improved compatibility with venv virtual environments
Restore code folding state when you start PyScripter (#973)
Syntax for adding and removing parameters (#971)
$[proc=?Question] adds parameter proc and $[proc=] removes it
Highlighters and styles are now installed under ProgramData
Improved DPI scaling
Two new styles added (Calypso and Stellar)
Issues addressed
#948, #962, #966, #967, #968, #972
History: v 3.6.3
New Features
The status panel with text position info can now be clicked to
show the "Go to line" dialog.
Issues addressed
#983, #985
History: v 3.6.4
New Features
Added support for Python 3.9 (and removed support for Python 2.6)
Added support for virtualenv v20+. Dropped support for earlier versions.
Added support for font ligatures
Issues addressed
#998, #1001, #1003, #1008, #1009
History: v 4.0
New Features
Major redesign of the User Interface - Material icons and new logo
Re-architecture the interaction with python, code-completion etc.
It should result in a more responsive user experience without delays and freezes.
Added support for Python 3.10
Removed support for Python 2.7, 3.2
Installer and executable are now code-signed
Persian translation added
New IDE option "Restore open project"
New File Explorer command "Select Directory..." (#1034)
Issues addressed
#824, #990, #1031, #1035, #1038, #1039, #1040, #1105, #1109, #1111
History: v 4.1
New Features
- Implementation of the Language Server Protocol
- Python language support provided by the Jedi language server
- Two new styles added Windows11_Light and Windows11_Dark
- Copy and paste code as html to Powerpoint and other applications
- Removed support for python 3.3-3.5
- Read only indicator on tabs
- Added traditional Chinese translation
Issues addressed
#939, #951, #1116, #1118, #1119, #1122, #1123, #1125, #1129, #1133
#1136
History: v 4.2
New Features
- Python 3.11 support added - Support for python 3.6 removed
- Spell checking of comments and strings #84
- Track changes bar as in Visual Studio
- Editor Unicode handling improvements (emojis, bi-directional text, etc.)
- Editor selection options (alpha blending, fill whole lines)
- Portuguese translations (pt_PT, pt_BR) added
Issues addressed
#1140, #1146, #1149, #1151, #1163, #1165
History: v 4.2.2
New Features
- 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
#1152, #1155, #1177, #1181, #1182, #1183, #1185, #1186, #1187, #1189
History: v 4.2.7
New Features
- Customizable user interface content font size (#1209)
Issues addressed
#1172, #1195, #1197, #1198, #1208, #1214
}
{ TODO : Review Search and Replace }
{ TODO : Auto PEP8 tool }
{ TODO: LiveTemplates features for Code Templates }
{------------------------------------------------------------------------------}
// Bugs and minor features
// TODO: Internal Tool as in pywin
// TODO: Find module expert
// TODO: Code helpers, automatically fill the self parameter in methods
// TODO: UML Editor View
// TODO: Refactorings using rope
// TODO: Plugin architecture
// TODO Package as an Application Scripter Component
unit frmPyIDEMain;
interface
uses
WinAPI.Windows,
WinAPI.Messages,
WinApi.ActiveX,
System.Types,
System.UITypes,
System.SysUtils,
System.Classes,
System.Actions,
System.Variants,
System.ImageList,
Vcl.Graphics,
Vcl.Controls,
Vcl.Forms,
Vcl.Dialogs,
Vcl.ImgList,
Vcl.ActnList,
Vcl.Menus,
Vcl.StdCtrls,
Vcl.ExtCtrls,
Vcl.ComCtrls,
VCL.Styles,
Vcl.VirtualImageList,
Vcl.BaseImageCollection,
SVGIconImageCollection,
JclSysUtils,
JvAppInst,
JvComponentBase,
JvExControls,
JvDockTree,
JvDockControlForm,
JvDockVIDStyle,
JvDockVSNetStyle,
JvDockVSNetStyleSpTBX,
JvAppStorage,
JvAppIniStorage,
JvFormPlacement,
JvDSADialogs,
TB2Dock,
TB2Toolbar,
TB2Item,
TB2ExtItems,
SpTBXCustomizer,
SpTbxSkins,
SpTBXItem,
SpTBXEditors,
SpTBXMDIMRU,
SpTBXTabs,
SpTBXDkPanels,
SynEditTypes,
SynEditMiscClasses,
SynEdit,
dmCommands,
dlgCustomShortcuts,
uEditAppIntfs,
uHighlighterProcs,
cFileTemplates,
cPySupportTypes,
cPyBaseDebugger,
cPyDebugger,
cPyScripterSettings,
cPyControl;
const
WM_FINDDEFINITION = WM_USER + 100;
WM_CHECKFORUPDATES = WM_USER + 110;
WM_SEARCHREPLACEACTION = WM_USER + 130;
type
{ Trick to add functionality to TTSpTBXTabControl}
TSpTBXTabControl = class(SpTBXTabs.TSPTBXTabControl)
private
zOrderPos : integer;
zOrderProcessing : Boolean;
public
zOrder : TList;
procedure WMDropFiles(var Msg: TMessage); message WM_DROPFILES;
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
end;
TPyIDEMainForm = class(TForm, IIDELayouts, IPyIDEServices)
DockServer: TJvDockServer;
AppStorage: TJvAppIniFileStorage;
BGPanel: TPanel;
CloseTimer: TTimer;
TBXDockTop: TSpTBXDock;
MainMenu: TSpTBXToolbar;
FileMenu: TSpTBXSubmenuItem;
mnNewModule: TSpTBXItem;
mnFileOpen: TSpTBXItem;
N14: TSpTBXSeparatorItem;
mnFileClose: TSpTBXItem;
mnFileCloseAll: TSpTBXItem;
N1: TSpTBXSeparatorItem;
mnFileSave: TSpTBXItem;
mnFileSaveAs: TSpTBXItem;
mnFileSaveAll: TSpTBXItem;
N2: TSpTBXSeparatorItem;
PageSetup1: TSpTBXItem;
PrinterSetup1: TSpTBXItem;
PrintPreview1: TSpTBXItem;
Print1: TSpTBXItem;
N4: TSpTBXSeparatorItem;
N3: TSpTBXItem;
EditMenu: TSpTBXSubmenuItem;
mnEditUndo: TSpTBXItem;
mnEditRedo: TSpTBXItem;
N5: TSpTBXSeparatorItem;
mnEditCut: TSpTBXItem;
mnEditCopy: TSpTBXItem;
mnEditPaste: TSpTBXItem;
mnEditDelete: TSpTBXItem;
mnEditSelectAll: TSpTBXItem;
N6: TSpTBXSeparatorItem;
Parameters1: TSpTBXSubmenuItem;
mnInsertParameter: TSpTBXItem;
mnInsertModifier: TSpTBXItem;
N16: TSpTBXSeparatorItem;
mnReplaceParameter: TSpTBXItem;
mnIsertCodeTemplate: TSpTBXItem;
mnSourceCode: TSpTBXSubmenuItem;
mnIndentBlock: TSpTBXItem;
mnDedentBlock: TSpTBXItem;
mnToggleComment: TSpTBXItem;
mnTabify: TSpTBXItem;
mnUnTabify: TSpTBXItem;
SearchMenu: TSpTBXSubmenuItem;
mnSearchFind: TSpTBXItem;
mnSearchFindNext: TSpTBXItem;
mnSearchFindPrevious: TSpTBXItem;
mnSearchReplace: TSpTBXItem;
N15: TSpTBXSeparatorItem;
mnFindinFiles: TSpTBXItem;
N7: TSpTBXSeparatorItem;
mnGoToLine: TSpTBXItem;
mnFindFunction: TSpTBXItem;
N23: TSpTBXSeparatorItem;
mnMatchingBrace: TSpTBXItem;
RunMenu: TSpTBXSubmenuItem;
mnSyntaxCheck: TSpTBXItem;
mnImportModule: TSpTBXItem;
N21: TSpTBXSeparatorItem;
mnRun: TSpTBXItem;
N22: TSpTBXSeparatorItem;
mnExternalRun: TSpTBXItem;
mnConfigureExternalRun: TSpTBXItem;
N8: TSpTBXSeparatorItem;
mnDebug: TSpTBXItem;
mnRunToCursor: TSpTBXItem;
mnStepInto: TSpTBXItem;
mnStepOver: TSpTBXItem;
mnStepOut: TSpTBXItem;
mnAbortDebugging: TSpTBXItem;
N9: TSpTBXSeparatorItem;
mnTogglebreakpoint: TSpTBXItem;
mnClearAllBreakpoints: TSpTBXItem;
ToolsMenu: TSpTBXSubmenuItem;
mnPythonPath: TSpTBXItem;
N13: TSpTBXSeparatorItem;
mnConfigureTools: TSpTBXItem;
N20: TSpTBXSeparatorItem;
OptionsMenu: TSpTBXSubmenuItem;
mnIDEOptions: TSpTBXItem;
mnEditorOptions: TSpTBXItem;
mnCustomizeParameters: TSpTBXItem;
mnCodeTemplates: TSpTBXItem;
ViewMenu: TSpTBXSubmenuItem;
mnNextEditor: TSpTBXItem;
mnPreviousEditor: TSpTBXItem;
N10: TSpTBXSeparatorItem;
mnuToolbars: TSpTBXSubmenuItem;
mnViewStatusBar: TSpTBXItem;
mnViewII: TSpTBXItem;
mnViewFileExplorer: TSpTBXItem;
mnViewCodeExplorer: TSpTBXItem;
mnViewToDoList: TSpTBXItem;
mnViewFindResults: TSpTBXItem;
mnViewOutput: TSpTBXItem;
DebugWindows1: TSpTBXSubmenuItem;
mnViewCallStack: TSpTBXItem;
mnViewVariables: TSpTBXItem;
mnViewBreakpoints: TSpTBXItem;
mnViewWatches: TSpTBXItem;
mnViewMessages: TSpTBXItem;
HelpMenu: TSpTBXSubmenuItem;
mnHelpPythonManuals: TSpTBXItem;
N18: TSpTBXSeparatorItem;
PyScripter1: TSpTBXSubmenuItem;
mnHelpParameters: TSpTBXItem;
mnHelpExternalTools: TSpTBXItem;
N17: TSpTBXSeparatorItem;
mnHelpAbout: TSpTBXItem;
MainToolBar: TSpTBXToolbar;
tbiFileNewModule: TSpTBXItem;
tbiFileOpen: TSpTBXItem;
tbiFileSave: TSpTBXItem;
tbiFileSaveAll: TSpTBXItem;
TBXSeparatorItem1: TSpTBXSeparatorItem;
tbiFilePrint: TSpTBXItem;
TBXSeparatorItem2: TSpTBXSeparatorItem;
tbiEditCut: TSpTBXItem;
tbiEditCopy: TSpTBXItem;
tbiEditPaste: TSpTBXItem;
TBXSeparatorItem3: TSpTBXSeparatorItem;
tbiEditUndo: TSpTBXItem;
tbiEditRedo: TSpTBXItem;
TBXSeparatorItem4: TSpTBXSeparatorItem;
tbiSearchFind: TSpTBXItem;
tbiSearchFindNext: TSpTBXItem;
tbiSearchReplace: TSpTBXItem;
tbiFindInFiles: TSpTBXItem;
TBXSeparatorItem5: TSpTBXSeparatorItem;
tbiAbout: TSpTBXItem;
DebugToolbar: TSpTBXToolbar;
tbiRunRun: TSpTBXItem;
TBXSeparatorItem6: TSpTBXSeparatorItem;
tbiRunDebug: TSpTBXItem;
tbiRunRunToCursor: TSpTBXItem;
tbiRunStepInto: TSpTBXItem;
tbiRunStepOver: TSpTBXItem;
tbiRunStepOut: TSpTBXItem;
tbiRunAbort: TSpTBXItem;
TBXSeparatorItem7: TSpTBXSeparatorItem;
tbiRunToggleBreakpoint: TSpTBXItem;
tbiRunClearAllBreakpoints: TSpTBXItem;
ViewToolbar: TSpTBXToolbar;
TBXDockLeft: TSpTBXDock;
TBXDockRight: TSpTBXDock;
TBXDockBottom: TSpTBXDock;
mnTools: TSpTBXSubmenuItem;
TabControlPopupMenu: TSpTBXPopupMenu;
mnNewModule2: TSpTBXItem;
mnFileClose2: TSpTBXItem;
mnFileCloseAll2: TSpTBXItem;
N12: TSpTBXSeparatorItem;
mnEditorOptions2: TSpTBXItem;
RecentSubmenu: TSpTBXSubmenuItem;
EditorViewsMenu: TSpTBXSubmenuItem;
TBXSeparatorItem8: TSpTBXSeparatorItem;
EditorToolbar: TSpTBXToolbar;
tbiEditDedent: TSpTBXItem;
tbiEditIndent: TSpTBXItem;
TBXSeparatorItem10: TSpTBXSeparatorItem;
tbiEditToggleComment: TSpTBXItem;
TBXSeparatorItem11: TSpTBXSeparatorItem;
tbiEditSpecialCharacters: TSpTBXItem;
tbiEditLineNumbers: TSpTBXItem;
mnFindPreviousReference: TSpTBXItem;
mnFindNextReference: TSpTBXItem;
mnFindDefinition: TSpTBXItem;
TBXSeparatorItem9: TSpTBXSeparatorItem;
TBXSubmenuItem3: TSpTBXSubmenuItem;
mnEditLBMac: TSpTBXItem;
mnEditLBUnix: TSpTBXItem;
mnEditLBDos: TSpTBXItem;
TBXSeparatorItem12: TSpTBXSeparatorItem;
mnEditUtf8: TSpTBXItem;
TBXSeparatorItem13: TSpTBXSeparatorItem;
mnFindReferences: TSpTBXItem;
tbiBrowseNext: TSpTBXSubmenuItem;
tbiBrowsePrevious: TSpTBXSubmenuItem;
TBXSeparatorItem14: TSpTBXSeparatorItem;
mnHelpContents: TSpTBXItem;
mnHelpEditorShortcuts: TSpTBXItem;
TBXSeparatorItem15: TSpTBXSeparatorItem;
mnCheckForUpdates: TSpTBXItem;
mnViewRegExpTester: TSpTBXItem;
mnCommandLineParams: TSpTBXItem;
mnIDEShortCuts: TSpTBXItem;
mnUnitTestWizard: TSpTBXItem;
mnViewUnitTests: TSpTBXItem;
TBXSeparatorItem16: TSpTBXSeparatorItem;
mnLayouts: TSpTBXSubmenuItem;
mnLayOutSeparator: TSpTBXSeparatorItem;
tbiViewLayouts: TSpTBXSubmenuItem;
TBXItem47: TSpTBXItem;
TBXItem48: TSpTBXItem;
TBXItem49: TSpTBXItem;
mnMaximizeEditor: TSpTBXItem;
TBXSeparatorItem17: TSpTBXSeparatorItem;
TBXSeparatorItem18: TSpTBXSeparatorItem;
TBXSubmenuItem4: TSpTBXSubmenuItem;
TBXSeparatorItem19: TSpTBXSeparatorItem;
mnNoSyntax: TSpTBXItem;
TBXSeparatorItem20: TSpTBXSeparatorItem;
TBXSeparatorItem21: TSpTBXSeparatorItem;
mnSyntax: TSpTBXSubmenuItem;
mnZoomOut: TSpTBXItem;
mnZoomIn: TSpTBXItem;
TBXSeparatorItem22: TSpTBXSeparatorItem;
mnFiles: TSpTBXSubmenuItem;
mnAddWatchAtCursor: TSpTBXItem;
RunningProcessesPopUpMenu: TSpTBXPopupMenu;
mnFileTemplates: TSpTBXItem;
TBXSubmenuItem5: TSpTBXSubmenuItem;
TBXSeparatorItem23: TSpTBXSeparatorItem;
mnNewFile: TSpTBXItem;
JvAppInstances: TJvAppInstances;
mnEditAnsi: TSpTBXItem;
mnEditUtf8NoBom: TSpTBXItem;
mnuFindInFilesResults: TSpTBXItem;
TBXSubmenuItem6: TSpTBXSubmenuItem;
mnNavEditor: TSpTBXItem;
TBXSeparatorItem24: TSpTBXSeparatorItem;
mnNavCodeExplorer: TSpTBXItem;
mnNavFileExplorer: TSpTBXItem;
mnNavUnitTests: TSpTBXItem;
mnNavOutput: TSpTBXItem;
mnNavTodo: TSpTBXItem;
TBXSeparatorItem25: TSpTBXSeparatorItem;
mnNavMessages: TSpTBXItem;
mnNavBreakpoints: TSpTBXItem;
mnNavWatches: TSpTBXItem;
mnNavVariables: TSpTBXItem;
mnNavCallStack: TSpTBXItem;
mnNavInterpreter: TSpTBXItem;
tbiRunPause: TSpTBXItem;
mnPause: TSpTBXItem;
mnPythonEngines: TSpTBXSubmenuItem;
mnEngineRemoteWx: TSpTBXItem;
mnEngineRemoteTk: TSpTBXItem;
mnEngineRemote: TSpTBXItem;
mnEngineInternal: TSpTBXItem;
mnReinitEngine: TSpTBXItem;
TBXSeparatorItem26: TSpTBXSeparatorItem;
TBXSeparatorItem27: TSpTBXSeparatorItem;
mnExecSelection: TSpTBXItem;
TBXItem77: TSpTBXItem;
TBXSeparatorItem28: TSpTBXSeparatorItem;
mnRestoreEditor2: TSpTBXItem;
mnMaximizeEditor2: TSpTBXItem;
mnFileReload: TSpTBXItem;
TBXSeparatorItem29: TSpTBXSeparatorItem;
TBXSubmenuItem7: TSpTBXSubmenuItem;
mnImportShortcuts: TSpTBXItem;
mnExportShortcuts: TSpTBXItem;
TBXSeparatorItem30: TSpTBXSeparatorItem;
mnImportHighlighters: TSpTBXItem;
mnExportHighlighters: TSpTBXItem;
mnViewMainMenu: TSpTBXItem;
FindToolbar: TSpTBXToolbar;
tbiFindLabel: TSpTBXLabelItem;
tbiFindNext: TSpTBXItem;
tbiFindPrevious: TSpTBXItem;
tbiReplaceSeparator: TSpTBXSeparatorItem;
tbiReplaceLabel: TSpTBXLabelItem;
TBXSeparatorItem32: TSpTBXSeparatorItem;
tbiSearchOptions: TSpTBXSubmenuItem;
tbiWholeWords: TSpTBXItem;
tbiSearchInSelection: TSpTBXItem;
tbiRegExp: TSpTBXItem;
tbiCaseSensitive: TSpTBXItem;
tbiIncrementalSearch: TSpTBXItem;
SpTBXSeparatorItem1: TSpTBXSeparatorItem;
tbiHighlight: TSpTBXItem;
tbiReplaceExecute: TSpTBXItem;
SpTBXSeparatorItem2: TSpTBXSeparatorItem;
tbiSearchFromCaret: TSpTBXItem;
TBXSeparatorItem31: TSpTBXSeparatorItem;
mnGotoSyntaxError: TSpTBXItem;
mnSearchHighlight: TSpTBXItem;
tbiEditWordWrap: TSpTBXItem;
mnGoToDebugLine: TSpTBXItem;
mnSplitEditors: TSpTBXSubmenuItem;
mnSplitEditorVer: TSpTBXItem;
mnSplitEditorHor: TSpTBXItem;
mnHideSecondEditor: TSpTBXItem;
TBXSeparatorItem33: TSpTBXSeparatorItem;
mnPostMortem: TSpTBXItem;
SpTBXCustomizer: TSpTBXCustomizer;
ToolbarPopupMenu: TSpTBXPopupMenu;
SpTBXSeparatorItem3: TSpTBXSeparatorItem;
mnViewCustomizeToolbars: TSpTBXItem;
UserToolbar: TSpTBXToolbar;
JvFormStorage: TJvFormStorage;
mnNavProjectExplorer: TSpTBXItem;
mnViewProjectExplorer: TSpTBXItem;
ProjectMenu: TSpTBXSubmenuItem;
mnProjectSaveAs: TSpTBXItem;
mnProjectSave: TSpTBXItem;
mnProjectOpen: TSpTBXItem;
mnProjectNew: TSpTBXItem;
SpTBXSeparatorItem4: TSpTBXSeparatorItem;
mnNavProjectExplorer2: TSpTBXItem;
SpTBXSubmenuItem2: TSpTBXSubmenuItem;
mnHelpProjectHome: TSpTBXItem;
mnHelpWebSupport: TSpTBXItem;
mnFileCloseAllOther: TSpTBXItem;
mnEditUtf16BE: TSpTBXItem;
mnEditUtf16LE: TSpTBXItem;
StatusBar: TSpTBXStatusBar;
SpTBXSeparatorItem5: TSpTBXSeparatorItem;
lbStatusMessage: TSpTBXLabelItem;
SpTBXRightAlignSpacerItem1: TSpTBXRightAlignSpacerItem;
lbStatusCaret: TSpTBXLabelItem;
SpTBXSeparatorItem6: TSpTBXSeparatorItem;
lbStatusModified: TSpTBXLabelItem;
SpTBXSeparatorItem7: TSpTBXSeparatorItem;
lbStatusOverwrite: TSpTBXLabelItem;
SpTBXSeparatorItem8: TSpTBXSeparatorItem;
lbStatusCaps: TSpTBXLabelItem;
SpTBXSeparatorItem9: TSpTBXSeparatorItem;
mnMainToolbarVisibilityToggle: TSpTBXItem;
mnDebugtoolbarVisibilityToggle: TSpTBXItem;
mnEditorToolbarVisibilityToggle: TSpTBXItem;
mnViewToolbarVisibilityToggle: TSpTBXItem;
mnuUserToolbarVisibilityToggle: TSpTBXItem;