We improved the Script Widget by adding functionality to its buttons.
We had to rewrite its functions that we previously wrote in order to implement the buttons correctly.
This scripting widget will have a new dock widget being created at the start of eCAD. But the new textEdit widget will only be created in this dock widget when the user clicks on new script button. And the use well be prompted to save the file.
This was done deliberately to implement Script Auto Save feature. The script would be auto saved after every 60 seconds.