0
(25-02-2025, 15:35)mati75 napisał(a):przed linią:Kod:sudo xed /usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py
Kod:import gettext
dopisz:
Kod:import gi
gi.require_version('Gtk', '3.0')
Odpowiedź
Kod:
bash: błąd składni przy nieoczekiwanym znaczniku `'Gtk','
Dodano po pewnym czasie:
Ponownie wpisałem w terminal "łight-loker-settings" i wyskoczył błąd na końcu …
Kod:
~$ light-locker-settings
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:514: SyntaxWarning: invalid escape sequence '\d'
"timeout: *(\d+)", screensaver_output)
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:517: SyntaxWarning: invalid escape sequence '\d'
'\d+', screenblank_timeout_grep.group(1))
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:522: SyntaxWarning: invalid escape sequence '\d'
"Standby: *(\d+)", screensaver_output)
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:525: SyntaxWarning: invalid escape sequence '\d'
'\d+', screenoff_timeout_grep.group(1))
/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '4.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk, GLib, Gio
Traceback (most recent call last):
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 702, in <module>
main = LightLockerSettings()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/light-locker-settings/light-locker-settings/light-locker-settings.py", line 59, in __init__
self.builder.add_from_file(glade_file)
gi.repository.GLib.GError: gtk-builder-error-quark: /usr/share/light-locker-settings/light-locker-settings/light-locker-settings.glade:8:75 Invalid signal 'delete-event' for type 'GtkWindow' (12)
"Lepiej być dobrej myśli , bo po co być złej" - Stanisław Lem