MattHag
f5d80c30fa
solaar/ui: Remove outdated logger enabled checks
...
Logger enabled checks clutter the code unnecessarily. The checks are
now handled in a custom logger class. Eventually they can be completely
removed in the future.
Related #2664
2025-01-02 09:26:31 -05:00
MattHag
e9a58fb3e0
Introduce GTK signal types
...
Related #2273
2025-01-02 08:29:32 -05:00
MattHag
46366b2430
Fix warnings from automatic code inspections
...
Warnings found by automatic code inspection and partially tackled
- Drop distuitls inf favour of setuptools
- Replace deprecated pyudev.Device.from_device_number
- Remove unnecessary brackets
- Avoid access to private variables etc.
- Shadows built-in name
- Line length >120 characters
- Not a module level variable
- Simplify clause
and more
2024-10-11 07:42:38 -04:00
Peter F. Patel-Schneider
4aada31b21
ui: augment pairing message for devices with multiple channels
2024-10-08 15:15:35 -04:00
MattHag
67829c5807
Clean up imports ( #2537 )
...
* Remove import as _ in solaar startup
Related #2273
* Remove import as _ in listener
Related #2273
* Remove import as _ in cli init
Related #2273
* Remove import as _ in gtk
Related #2273
* Remove import as _ in show
Related #2273
* Remove import as _ in tray
Related #2273
* Remove import as _ in profiles
Related #2273
* Remove import as _ in config
Related #2273
* Remove import as _ in config panel
Related #2273
* Remove import as _ in window
Related #2273
* Remove import as _ in pair
Related #2273
* Remove import as _ in pair window
Related #2273
* Remove import as _ in cli package
Related #2273
* Remove import as _ in ui package
Related #2273
* Remove commented out code
Related #2273
* Use constant for Logitech ID
2024-07-15 08:37:18 -04:00
Peter F. Patel-Schneider
bd437b548b
ui: refactor pair_window
2024-03-25 09:13:22 -04:00
Peter F. Patel-Schneider
50c8013cb1
ui: reduce deprecation warnings in ui
2024-03-19 09:07:21 -04:00
Matthias Hagmann
5b09ace1f5
ruff: Apply single line import format
...
# Usage
pre-commit run --all-files
Related #2295
2024-03-13 15:41:21 -04:00
Matthias Hagmann
e92f1a8a0b
Automatically upgrade strings to f-string
...
Used flynt to convert strings to f-strings, where safely possible.
Usage:
flynt .
Related #2372
2024-03-13 11:02:50 -04:00
Peter F. Patel-Schneider
1fe2eab1a4
device: move link_encrypted from status to Device
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
87285faf7f
receiver: move pairing status to new dataclass attached to receiver
2024-03-11 08:23:27 -04:00
Peter F. Patel-Schneider
135c8b8cb9
device: use status attribute for error
2024-03-09 10:36:40 -05:00
Peter F. Patel-Schneider
6b3f09aa5d
device: use status attribute for link_encrypted
2024-03-09 10:36:40 -05:00
Matthias Hagmann
7ef3059b69
clean up: Remove editor specific marks
...
Related #2273
2024-02-29 10:10:46 -05:00
Matthias Hagmann
c3b01bffae
fix: Replace invalid hidpp10 usage
...
Related #1097
2024-02-28 17:41:46 -05:00
Matthias Hagmann
7774569971
Apply ruff format
...
Run ruff auto formatting using:
ruff format .
Related #2295
2024-02-20 15:41:10 -05:00
MattHag
87658fb189
logging: Simplify logger instantiation
...
* logging: Simplify logger instantiation
Relates #2254
* logging: Remove aliases
Relates #2254
* logging: Replace deprecated warn with warning
Related #2254
* logging: Fix mistake
Related #2257
2024-02-10 13:55:27 -05:00
Peter F. Patel-Schneider
14fd8efc9e
ui: mention compatability and non-connection in pairing window
2023-01-09 05:20:16 -05:00
Peter F. Patel-Schneider
d6847a6ce4
ui: only update remaining pairings after sucessful pairing
2022-10-21 16:48:07 -04:00
Peter F. Patel-Schneider
603fbe96e0
ui: add pairing for Bolt receivers
2021-11-11 10:48:12 -05:00
Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Marián Kyral
b722eccf04
Fix typo
2020-12-30 12:22:09 -05:00
Peter F. Patel-Schneider
fd02b33971
ui: use ngettext for translatable strings with number dependencies
2020-08-02 11:56:56 -04:00
Filipe Laíns
27c90fa736
yapf: adjust style to not indent closing brackets
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
8e89aa0038
yapf: set max line lenght to 127
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
e6369e0c3c
isort: intial import fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Peter F. Patel-Schneider
8fb52a3f37
ui: don't show warning in pairing window for receivers with unlimited pairing
2020-02-18 12:19:45 +00:00
Peter F. Patel-Schneider
5afa094175
ui: Add message about remaining pairings to pairing window when receiver has limited pairings
2020-02-17 08:34:53 +00:00
Dimitriy Ryazantcev
934ecb821d
Update l10n strings in code
2016-12-21 00:18:01 +02:00
Daniel Pavel
61dfefde94
internationalized most strings; fixes #79
...
some might have slipped through the cracks
2013-07-17 19:53:21 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
43ab629a26
moved logitech.unifying_receiver package to logitech_receiver
2013-07-12 22:48:09 +02:00
Daniel Pavel
faa6de3b75
more explicit error dialogs, when possible
2013-07-06 14:20:50 +02:00
Daniel Pavel
a9ea69b9a1
more explicit error message when trying to pair uncompatible devices
2013-07-01 11:41:47 +02:00
Daniel Pavel
888be8e8a8
be a bit more patient when pairing, the device notification may come after the pairing lock is closed
2013-06-21 16:40:00 +02:00
Daniel Pavel
3a63c3ad43
fixed reading encrypted link status in pairing window
2013-06-21 15:04:06 +02:00
Daniel Pavel
c797808a40
fixed status keys in pairing
2013-06-20 19:35:54 +02:00
Daniel Pavel
cd44cc6396
new single-window UI
2013-06-19 15:28:13 +02:00
Daniel Pavel
10e736386b
user module __name__ when initializing logger
2013-06-07 14:28:13 +02:00
Daniel Pavel
340ff0107c
version 0.8.8.2
2013-05-26 18:43:23 +03:00
Daniel Pavel
22da75cb72
replaced some deprecated GObject calls with GLib
2013-04-30 11:47:30 +02:00
Daniel Pavel
36f34da227
proper debian packaging, dropper stdeb
2013-01-05 11:48:35 +02:00