Moved the editor close to the correct place.
This commit is contained in:
parent
03bfe4772b
commit
473ddc09d3
|
@ -98,7 +98,6 @@ class CadQueryCloseScript:
|
||||||
|
|
||||||
#Clear our script and whatever was rendered by it out
|
#Clear our script and whatever was rendered by it out
|
||||||
cqCodePane.file.close()
|
cqCodePane.file.close()
|
||||||
cqCodePane.close()
|
|
||||||
|
|
||||||
class CadQueryExecuteExample:
|
class CadQueryExecuteExample:
|
||||||
exFile = None
|
exFile = None
|
||||||
|
|
|
@ -185,6 +185,9 @@ class CadQueryWorkbench (Workbench):
|
||||||
#Getting the main window will allow us to start setting things up the way we want
|
#Getting the main window will allow us to start setting things up the way we want
|
||||||
mw = FreeCADGui.getMainWindow()
|
mw = FreeCADGui.getMainWindow()
|
||||||
|
|
||||||
|
cqCodePane = mw.findChild(QtGui.QPlainTextEdit, "cqCodePane")
|
||||||
|
cqCodePane.close()
|
||||||
|
|
||||||
dockWidgets = mw.findChildren(QtGui.QDockWidget)
|
dockWidgets = mw.findChildren(QtGui.QDockWidget)
|
||||||
|
|
||||||
for widget in dockWidgets:
|
for widget in dockWidgets:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user