nirvn
2aebeb0157
[ui] add security warning to the python console
2018-08-20 14:41:07 +07:00
Matthias Kuhn
ae192e8624
Make console printing safe
...
References #8343 https://issues.qgis.org/issues/8343
2018-07-02 18:35:24 -05:00
nirvn
45aca2f942
fix unclosed strings not style in python console & script editor
2018-05-23 10:08:02 +07:00
nirvn
9cf6bbf424
Improve default color scheme for python console & script editor
2018-05-22 17:56:25 +07:00
nirvn
45b045d212
Fix missing color settings for python console / script editor
2018-05-22 13:31:29 +07:00
Nyall Dawson
6d87a4cf3f
[console] Fix unclosed strings don't respect the preset font size
2018-05-22 15:43:14 +10:00
Shiva Reddy
536cc9cfbe
Update writeOut to include isatty ( #6602 )
...
Added these lines so that QGIS 3 python console works in window
2018-03-16 08:20:14 +11:00
Felis Pimeja
198bf77208
Vectorize console icons ( #6515 )
2018-03-09 09:53:53 +07:00
Alexander Bruy
7823025b8d
[python console] remove 'u' prefixes from strings ( fix #18171 )
2018-02-23 10:39:08 +02:00
Juergen E. Fischer
6dfedc38e9
translation string fixes and cleanups
2018-02-15 22:31:15 +01:00
Denis Rouzaud
3dc3d9d1b2
unite QgsMessageLog::Level and QgsMessageBar::MessageLevel in Qgis::MessageLevel
...
make enum items lower case
remove unused QgsMessageLog::None and All
2018-02-06 08:56:40 -04:00
Nyall Dawson
f6269c41da
[console] Allow breaking execution of scripts via Ctrl-C
...
This allows (in some circumstances) scripts running in the console
to be halted via the Ctrl (or Meta) + C shortcut.
(It's only possible to catch and abort when the script is printing
outputs to the console - because this triggers
QCoreApplication.processEvents() calls. Without these calls the
whole QGIS application is unresponsive during script execution
and there's no ability to even catch a shortcut in order to
halt the execution.
Still, even with this limitation it's handy to be able to
break out of lengthy:
for f in iface.activeLayer().getFeatures():
print(f.attributes())
loops!)
2018-01-30 09:58:31 +10:00
Nyall Dawson
0f79bfba1c
Use svg version of python console icon, courtesy of @pkinglinz ( #6016 )
2018-01-09 10:33:08 +07:00
Matthias Kuhn
0e09fdacde
Use monospace fonts for console on all platforms
2017-04-12 22:21:59 +02:00
Juergen E. Fischer
ecc5bb508e
pep8/pyflakes3 cleanups
2017-03-04 02:38:15 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
Denis Rouzaud
0a63d1f2c2
[spellcheck] properly look into various cases and add more fixes"
2017-01-16 16:39:20 +01:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Matthias Kuhn
e133b42896
Enable console with Python3 / PyQt5
2016-03-29 08:20:43 +02:00
Juergen E. Fischer
885d0ec993
python console: switch to pyqt wrappers and new style signals, flake8 fixes, show exceptions in console also with pyqt5
2016-03-21 17:00:25 +01:00
Nyall Dawson
72df8901f5
Clean up python console toolbars/menus:
...
- Consistent capitalization
- Add missing ellipsis
- Rename "settings" to "options" for consistency with main window
- Remove some excessive use of separators
2016-02-24 14:06:40 +11:00
Juergen E. Fischer
00633811c9
spelling fixes
2016-01-21 10:42:25 +01:00
Juergen E. Fischer
b39055b39c
indentation update (now including autopep8)
2015-08-22 14:29:41 +02:00
Juergen E. Fischer
956c155e8f
fix python pep8 warnings and fix some revealed errors
...
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
--exclude="ui_*.py,debian/*,python/ext-libs/*" \
.
2015-02-01 20:46:47 +01:00
Nathan Woodrow
380baa2f0c
Simplify python console init text
2014-09-12 21:24:17 +10:00
Salvatore Larosa
dcfccbc758
[pyqgis-console] avoid processEvents for stderr output
2013-12-02 08:05:06 +01:00
Salvatore Larosa
5f916b4009
[pyqgis-console] fixes some translation string
2013-11-02 18:40:26 +01:00
Salvatore Larosa
049edb2b10
[pyqgis-console] added more settings for fonts color
2013-09-19 13:17:13 +02:00
Salvatore Larosa
d8b8089e38
[pyqgis-console] allows to set font color in python lexer
2013-09-14 13:49:01 +02:00
Juergen E. Fischer
668a44f81a
indentation update
2013-09-03 21:59:14 +02:00
Salvatore Larosa
460b00786a
[pyqgis-console] adds a "\n" at the end of the header text if it has not been inserted from translators
2013-08-31 17:44:21 +02:00
Salvatore Larosa
2b2e452ba9
[pyqgis-console] fixes translation strings: avoids UnicodeEncode error
2013-08-10 15:04:58 +02:00
Alexander J. Dunlap
3aad6df8cc
Update console_output.py
...
Call QCoreApplication.processEvents() after writing to Python console, enabling incremental output from Python scripts. Fixes #8343 .
2013-07-30 13:06:51 -06:00
Nathan Woodrow
36e1b3b19d
Fix python console for Python 2.6
2013-06-15 20:50:17 +10:00
Salvatore Larosa
bc726dcbb5
more update to console for sipapiv2
2013-05-29 17:30:12 +02:00
Nathan Woodrow
17d424340e
Start sipapi update
2013-05-29 22:08:16 +10:00
Salvatore Larosa
51d73a94e5
[pyqgis-console] fix translation string
2013-05-20 11:02:09 +02:00
Salvatore Larosa
942d6bfa5d
[pyqgis-console] allow to disable automatic parentheses insertion from settings:
...
- fix: add Shift+Insert to paste action
- fix: set default Monospaced font at the first start
- allow to save state for console splitter
- fix for mousePressEvent into console
2013-05-20 01:58:41 +02:00
Salvatore Larosa
839343b1e5
[pyqgis-console] close bracket automatically
2013-05-11 00:25:49 +02:00
Salvatore Larosa
eb47ff5d8a
[pyqgis-console] fix typo and indentation update
2013-05-05 20:47:59 +02:00
Salvatore Larosa
ae7115f74f
[pyqgis-console] re-added shortcut mistakenly removed in 07abb34
2013-05-02 12:46:36 +02:00
Juergen E. Fischer
d0aa1e47e8
indentation update
2013-05-02 00:02:25 +02:00
Salvatore Larosa
195918293c
[pyqgis-console] small fix for show/hide editor action
2013-04-29 01:22:45 +02:00
Salvatore Larosa
71c9d96f44
[pyqgis-console ] adds more options to settings dialog:
...
- reorganized settings dialog
- added option autosave script before running
- added options for autocompletion code (from Document, from APIs, from Doc and API)
- minor fixes
2013-04-28 23:56:52 +02:00
Salvatore Larosa
07abb34ebe
[pyqgis-console] cleaning up code and minor fixes
2013-04-16 07:43:22 +02:00
Salvatore Larosa
9ab83615ff
[pyqgis-console] added button for comment/uncomment code in side editor and minor fixes
2013-04-16 07:43:22 +02:00
Salvatore Larosa
708a99c15b
[pyqgis-console] added button to toggle the side editor in python console
2013-04-16 07:42:21 +02:00
Salvatore Larosa
69dc6ac5ee
[FEATURE] Side Editor for Python Console
2013-04-16 07:41:02 +02:00
Salvatore Larosa
73b3d9cc8c
Followup d3981b8:
...
now it works properly with pylupdate4
2013-01-17 15:24:13 +01:00