- solve parenting issues when trying to load a FlatScript from Menu -> File -> Scripting

- added a first new example script and added some files to work with
- added a new parameter that will store the home folder of the FlatCAM installation so we can access the example folder
This commit is contained in:
Marius Stanciu
2020-05-01 17:10:42 +03:00
committed by Marius
parent f47396a6e5
commit 37c6bb2c61
21 changed files with 275 additions and 87 deletions

View File

@@ -25,8 +25,8 @@ if '_' not in builtins.__dict__:
class TextEditor(QtWidgets.QWidget):
def __init__(self, app, text=None, plain_text=None):
super().__init__()
def __init__(self, app, text=None, plain_text=None, parent=None):
super().__init__(parent=parent)
self.app = app
self.plain_text = plain_text