mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Added action: Hide/Show toolbar for PyQGIS Console
- image help update
This commit is contained in:
parent
3b886372fe
commit
1495f659c7
BIN
images/console/iconHideToolConsole.png
Normal file
BIN
images/console/iconHideToolConsole.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 291 B |
Binary file not shown.
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 7.8 KiB |
@ -491,6 +491,7 @@
|
||||
<file>console/iconCodepadConsole.png</file>
|
||||
<file>console/imgHelpConsole.png</file>
|
||||
<file>console/imgHelpMenu.png</file>
|
||||
<file>console/iconHideToolConsole.png</file>
|
||||
<file>flags/sr_Cyrl.png</file>
|
||||
<file>flags/sr_Latn.png</file>
|
||||
<file>flags/sw.png</file>
|
||||
|
@ -165,6 +165,11 @@ class EditorOutput(QsciScintilla):
|
||||
iconRun = QIcon(":/images/console/iconRunConsole.png")
|
||||
iconPastebin = QIcon(":/images/console/iconCodepadConsole.png")
|
||||
iconClear = QIcon(":/images/console/iconClearConsole.png")
|
||||
iconHideTool = QIcon(":/images/console/iconHideToolConsole.png")
|
||||
hideToolBar = menu.addAction(iconHideTool,
|
||||
"Hide/Show Toolbar",
|
||||
self.hideToolBar)
|
||||
menu.addSeparator()
|
||||
runAction = menu.addAction(iconRun,
|
||||
"Enter Selected",
|
||||
self.enteredSelected,
|
||||
@ -196,6 +201,11 @@ class EditorOutput(QsciScintilla):
|
||||
selectAllAction.setEnabled(True)
|
||||
clearAction.setEnabled(True)
|
||||
action = menu.exec_(self.mapToGlobal(e.pos()))
|
||||
|
||||
def hideToolBar(self):
|
||||
tB = self.parent.toolBar
|
||||
tB.hide() if tB.isVisible() else tB.show()
|
||||
self.edit.setFocus()
|
||||
|
||||
def copy(self):
|
||||
"""Copy text to clipboard... or keyboard interrupt"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user