New Python Script Editor
Posted: Thu Jul 21, 2016 4:03 pm
New Python Script Editor
New Version 0.2b Added On 07/21/2016
This plugin does not replace the existing Python Script Editor. (yet)
Features:
Threading!!!
Code Folding
Line Numbers
Folding Comments
Folding Icons
Folding Quoted Items
Number of Indent Spaces
Show Indent Guides
Delete Indent on Backspace
Tab Indents
Show Error on Indent Type
Anti Aliasing
Saving Dialog Size (Global)
Saving Dialog Location (Global)
Left and Right Margin Size
Top and Bottom Margin Size
Show White Space Characters
Zoom In Key
Zoom Out Key
Font Selection Per Colored Item
Color Selection Per Item (Listed Below)
Syntax Detection
Color Selection:
Correct Braces
Incorrect Braces
Caret
Class Names
Comments
Comment Block
Control Characters
Decorators
Definition Names
Double Quotes Strings
Code Folding Icons
Identifiers
Keywords
Custom Keywords
Line Numbers
Missing Closing Quotes
Numbers
Operators
Single Quotes
Triple Double Quotes
Triple Single Quotes
White Space
I have made provisions for coding example tool tips this has not been implemented as of yet.
I have also set up code completion as above not in use as of yet. i am trying to work out how to get the data file with the plugin because the code completion file is to large to do a forum post with
Syntax detection is another biggie. no more with it tossing out a traceback into the log. When you click on the Apply or Test buttons it will compile the code. and if there is an error it will move the editor to that line and add the error to the end of the line letting you know where the error is and what the error is. As soon as you start typing on that line it will remove the error message.
Threading is the biggest and best feature of this plugin in my opinion.
You can now do polling loops inside of a Python Script without having it bind up EG. You can have more then one macro running with a script at the same time.
There is a method as to how this works because you have to be able to close the thread properly as not not end up with anything orphaned. and you can also close the thread from another script if you want. I have plans to make the latter portion a lot easier to handle by returning a script number from the Action so you will be able to grab it and then use it if necessary to close the script.
the plugin will automatically close down the threads properly upon exiting of EG. please read the next forum post for further and more detailed explanation of how to use the threading bits if you are going to be looping. if you aren't going to be doing a processing loop but just want to have the ability to have more then one macro trigger at the same time then there is no need to worry about how to use the threading with a loop.
Extract the attached zip file into the EventGhost\plugins folder. It will make the necessary folders and files.
Restart EventGhost
Add the plugin. Located in the "Others" plugin category.
I am trying to work out a means to have it override the existing plugin script editor. I will add that as an option as soon as I figure out a clean way to do it.
This is a new plugin and needs to be tested fully for any weird issues. and that is why it is being posted now. it's a rather sizeable plugin and i want to make sure everything is working fine before i add anything more to it. so if you experience a problem please let me know so i can fix it. I have tried to test it as much as i can and all seems to work well.
enjoy and have fun
K
New Version 0.2b Added On 07/21/2016
This plugin does not replace the existing Python Script Editor. (yet)
Features:
Threading!!!
Code Folding
Line Numbers
Folding Comments
Folding Icons
Folding Quoted Items
Number of Indent Spaces
Show Indent Guides
Delete Indent on Backspace
Tab Indents
Show Error on Indent Type
Anti Aliasing
Saving Dialog Size (Global)
Saving Dialog Location (Global)
Left and Right Margin Size
Top and Bottom Margin Size
Show White Space Characters
Zoom In Key
Zoom Out Key
Font Selection Per Colored Item
Color Selection Per Item (Listed Below)
Syntax Detection
Color Selection:
Correct Braces
Incorrect Braces
Caret
Class Names
Comments
Comment Block
Control Characters
Decorators
Definition Names
Double Quotes Strings
Code Folding Icons
Identifiers
Keywords
Custom Keywords
Line Numbers
Missing Closing Quotes
Numbers
Operators
Single Quotes
Triple Double Quotes
Triple Single Quotes
White Space
I have made provisions for coding example tool tips this has not been implemented as of yet.
I have also set up code completion as above not in use as of yet. i am trying to work out how to get the data file with the plugin because the code completion file is to large to do a forum post with
Syntax detection is another biggie. no more with it tossing out a traceback into the log. When you click on the Apply or Test buttons it will compile the code. and if there is an error it will move the editor to that line and add the error to the end of the line letting you know where the error is and what the error is. As soon as you start typing on that line it will remove the error message.
Threading is the biggest and best feature of this plugin in my opinion.
You can now do polling loops inside of a Python Script without having it bind up EG. You can have more then one macro running with a script at the same time.
There is a method as to how this works because you have to be able to close the thread properly as not not end up with anything orphaned. and you can also close the thread from another script if you want. I have plans to make the latter portion a lot easier to handle by returning a script number from the Action so you will be able to grab it and then use it if necessary to close the script.
the plugin will automatically close down the threads properly upon exiting of EG. please read the next forum post for further and more detailed explanation of how to use the threading bits if you are going to be looping. if you aren't going to be doing a processing loop but just want to have the ability to have more then one macro trigger at the same time then there is no need to worry about how to use the threading with a loop.
Extract the attached zip file into the EventGhost\plugins folder. It will make the necessary folders and files.
Restart EventGhost
Add the plugin. Located in the "Others" plugin category.
I am trying to work out a means to have it override the existing plugin script editor. I will add that as an option as soon as I figure out a clean way to do it.
This is a new plugin and needs to be tested fully for any weird issues. and that is why it is being posted now. it's a rather sizeable plugin and i want to make sure everything is working fine before i add anything more to it. so if you experience a problem please let me know so i can fix it. I have tried to test it as much as i can and all seems to work well.
enjoy and have fun
K