Graphics Reference
In-Depth Information
If you want, you can create a startup script that automatically shows the console and
makes it nondockable whenever QGIS starts up. The startup script is stored in a hidden
directory in your user or home folder. Using your file manager, look for a hidden directory
named .qgis2 (or .qgis , depending on which version of QGIS you are running) in
your user or home directory (for Mac OS X, you can use the Go to Folder... item in the
Finder's Go menu). Inside this directory, there will be a subdirectory named python . In-
side the python directory, create a file named startup.py and place the following in-
to this file:
from console import console
from PyQt4.QtCore import Qt
console.show_console()
console._console.setAllowedAreas(Qt.DockWidgetAreas(Qt.NoDockWidgetArea))
As you can see, the only thing we changed was to add a call to con-
sole.show_console() to open the console window when QGIS starts.
Note
If the console is currently docked, this script won't undock it, although it will prevent you
from accidentally docking the console again.
Search WWH ::




Custom Search