18 Commits

Author SHA1 Message Date
Volker Schroer
af68c50254 grc: cannot ave general settings
Exiting grc fails with
Prefs path:  /grc.conf
[Errno 13] Keine Berechtigung: '/grc.conf'

So the settings like recently opened files or geometry of grc can not be saved.

Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
2024-07-01 06:49:45 -04:00
Marcus Müller
38435f7fe9 GRC: GR conf&persistent paths instead of ~/.gnuradio || ~/.grc_gnuradio
Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
2024-06-09 06:57:11 -04:00
Ryan Volz
3b61e3f927 grc: Save chosen external editor to config file.
Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
2023-08-15 11:54:42 -04:00
Josh Morman
b7828c950c grc: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
2021-11-24 14:41:53 -05:00
Clayton Smith
24acd82b02 grc: remove six 2020-10-05 09:36:11 +02:00
Oleksandr Kravchuk
43e6a43e3d python: Remove unnecessary 'from __future__ import'
All of the removed `from __future__ import` were needed in older
versions of Python (mostly 2.5.x and below) but later became mandatory
in most versions of Python 3 hence are not necessary anymore.

More specifically, according to __future__.py[1]:
- unicode_literals is part of Python since versions 2.6.0 and 3.0.0;
- print_function is part of Python since versions 2.6.0 and 3.0.0;
- absolute_import is part of Python since versions 2.5.0 and 3.0.0;
- division is part of Python since versions 2.2.0 and 3.0.0;

Get rid of those unnecessary imports to slightly clean up the codebase.

[1] https://github.com/python/cpython/blob/master/Lib/__future__.py
2020-08-03 11:40:27 +02:00
devnulling
9a453c2ca6 Update license header to SPDX format 2020-01-27 19:56:21 -08:00
Josh Morman
e02ab08b50 grc: remove canvas_size as a flowgraph option
It was mostly removed with the feature of auto-resizing the canvase
This just removes the option from the options block and some other
unused code
2020-01-08 10:21:20 -08:00
Josh Morman
0a8514693b runtime: add GR_PREFS_PATH env variable search
When looking for the config file, allow the env variable
GR_PREFS_PATH to be searched so that multiple installations
of GR each with its own prefs can be used, similar to what
is currently done in GRC
2020-01-06 14:03:14 -08:00
Marc L
c65ce732df grc: added url to wiki page for each block in docs tab 2019-07-17 21:39:18 +02:00
Brennan Ashton
aa8804f502 grc: Improve exception handling (bare and unnecessary) 2018-11-15 15:44:05 -08:00
Clayton Smith
073dfeb123 Give the GRC GUI a better default configuration. 2018-09-22 00:17:59 +02:00
Seth Hitefield
b4cd681e1c grc: gtk3: Converted actions to Gio.Action instead of Gtk.Action 2017-05-03 07:07:59 -07:00
Seth Hitefield
ae0764ced9 grc: refactor: Moved preferences to Config.py 2016-09-23 16:18:00 -04:00
Seth Hitefield
bf3a2d1093 grc: refactor: Cleaned up imports 2016-09-22 12:15:51 -04:00
Sebastian Koslowski
b80c4dbddb grc: refactor: make gr.prefs() optional (for testing) 2016-09-19 04:17:40 -06:00
Sebastian Koslowski
b9881b6ff5 grc: py3k compat using python-modernize 2016-06-09 14:47:35 +02:00
Sebastian Koslowski
b32aad9e41 grc-refactor: remove (hopefully) all deps to GR in core/ and gui/ 2016-04-05 10:10:36 +02:00