staging.inyokaproject.org

myRadio

Status: Ungelöst | Ubuntu-Version: Nicht spezifiziert
Antworten |

Axel-Erfurt

(Themenstarter)

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

1) Sowohl unter KDE/Plasma wie auch unter Gnome (ich habe es zum testen auch noch rasch auf einem Ubuntu (Gnome) 18.04 Testsystem installiert) ist das Trayicon ohne Funktion. Weder linke noch rechte Maustaste führt zu irgend einer Reaktion.

Mit dem Tray hatte ich bisher nur unter elementary OS Probleme, dort werden Tray Icons von Hause aus verhindert. KDE/Plasma Und Gnome habe ich nicht. Wenn Du auch ohne Tray auskommst kann man es ausschalten.

2) Das Programm bleibt nach minimieren in der Taskleiste. Das lässt sich durch auskommentieren der Zeile win.show() zwar beheben aber das Programm ist dann wegen des nicht reagierenden Trayicons unbedienbar - siehe 1).

Das ist dann wohl eine Folge von 1.

In der settings.conf steht dann index=0, eine Änderung auf index=1 behebt das "Problem". Das ist reproduizerbar: Nach dem Löschen der settings.conf wird die Datei beim nächsten Mal wieder mit index=0 angelegt.

Dort steht als index der zuletzt benutzte index (Sender der zuletzt gehört wurde)

Im Anhang eine Version ohne Tray

myRadioTest.py (21.6 KiB)
Download myRadioTest.py

Balu62

Avatar von Balu62

Anmeldungsdatum:
22. Oktober 2007

Beiträge: 904

First of all die gute Nachricht: In der letzten Test-Version (die ohne Trayicon) funktioniert das Beenden auch unter KDE.

Aber: Ich bin ja eben auf der Suche nach einem Tray-Radio... insofern bringt mir die Version ohne Trayicon wenig. Als normaler Task kann ich auch z.B. mpv laufen lassen. Das ist ja aber eben nicht das Ziel. Deshalb hatte ich Hoffnung, endlich einen aktuellen Trayplayer gefunden zu haben.

Bezüglich Trayicon: Ich weiss nicht unter welcher Distri Du entwickelst / testest?! Ich habe mir mal die Mühe gemacht und habe es auf weiteren Distris (Kubuntu 19.10 (2 Systeme), Ubuntu 18.04, Mate 18.04, Xubuntu 19.10 und Lubuntu 20.04) installiert. Somit habe ich, denke ich, alle gängigen x-buntu-Derivate getestet. Mit folgenden Resultat: Das Trayicon funktioniert leider unter keinem einzigen der getesten Derivate ☹ Zwei kleine Ausnahmen: Unter Mate öffnet sich mit einem Linksklick ein schmaler schwarzer "Menü"-Balken, jedoch ohne irgendwelchen Inhalt und in Lubuntu passiert links ebenfalls nicht, mit rechts wird ein "Quit"-Eintrag angezeigt, welcher auch funktioniert. Also für x-buntu offenbar momentan kein Tray-Player.

BTW: Bezüglich fehlender Bedienelemente habe ich gerade noch mal geschaut: Wenn man den Player (first start) nur startet und wieder beendet, ist automatisch die oberste Zeile der myradio.txt ausgewählt (also index=0). Das führt dann zum Fehlen der Bedienelemente. Sobald man einen Sender auswählt, werden die Elemente wieder eingeblendet und "Kategorien-Überschriften" lassen sich danach richtigerweise auch nicht mehr selektieren. Also eher eine mögliche Fehlbedienung die nicht abgefangen wird 😉

Axel-Erfurt

(Themenstarter)

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Balu62 schrieb:

Bezüglich Trayicon: Ich weiss nicht unter welcher Distri Du entwickelst / testest?! Ich habe mir mal die Mühe gemacht und habe es auf weiteren Distris (Kubuntu 19.10 (2 Systeme), Ubuntu 18.04, Mate 18.04, Xubuntu 19.10 und Lubuntu 20.04) installiert.

Ich arbeite mit Mint 19.3 xfce, dort und in Mint 19.3 Mate funktioniert es. PyQt5 Version 5.13.0

BTW: Bezüglich fehlender Bedienelemente habe ich gerade noch mal geschaut: Wenn man den Player (first start) nur startet und wieder beendet, ist automatisch die oberste Zeile der myradio.txt ausgewählt (also index=0). Das führt dann zum Fehlen der Bedienelemente. Sobald man einen Sender auswählt, werden die Elemente wieder eingeblendet und "Kategorien-Überschriften" lassen sich danach richtigerweise auch nicht mehr selektieren. Also eher eine mögliche Fehlbedienung die nicht abgefangen wird 😉

Ich hatte am Anfang index=0 gesetzt wenn keine config da ist, aber damals hatte ich noch keine Kategorien, als müßte es index=1 sein.

Du kannst vorerst readSettings ändern in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
    def readSettings(self):
        ms = QDir.homePath() + "/.config/myRadio/settings.conf"
        print(ms)
        if QFile.exists(ms):
            print("reading settings ...")
            if self.settings.contains("pos"):
                pos = self.settings.value("pos", QPoint(200, 200))
                self.move(pos)
            else:
                self.move(0, 26)
            if self.settings.contains("index"):
                index = int(self.settings.value("index"))
                self.urlCombo.setFocus()
                self.urlCombo.setCurrentIndex(index)
                self.url_changed()
            else:
                self.urlCombo.setCurrentIndex(1)
                self.url_changed()
        else:
            self.urlCombo.setCurrentIndex(1)
            self.url_changed()

Balu62

Avatar von Balu62

Anmeldungsdatum:
22. Oktober 2007

Beiträge: 904

Axel-Erfurt schrieb:

Ich arbeite mit Mint 19.3 xfce, dort und in Mint 19.3 Mate funktioniert es. PyQt5 Version 5.13.0

Sehr seltsam... Unter Kubuntu 19.10 ist das hier PyQt5 Version 5.12.3. Ich habe so langsam den Verdacht, dass möglicherweise irgend etwas fehlt. Kannst Du da ev. mal ein Auge drauf werfen?

Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                          Version                  Architektur  Beschreibung
+++-=============================-========================-============-============================================================================
ii  python3                       3.7.5-1                  amd64        interactive high-level object-oriented language (default python3 version)
un  python3-all                   <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-aplpy                 <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-apport                2.20.11-0ubuntu8.2       all          Python 3 library for Apport crash report handling
ii  python3-apt                   1.9.0ubuntu1.3           amd64        Python 3 interface to libapt-pkg
un  python3-apt-dbg               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-aptdaemon             1.1.1+bzr982-0ubuntu28.1 all          Python 3 module for the server and client of aptdaemon
rc  python3-aptdaemon.pkcompat    1.1.1+bzr982-0ubuntu14   all          PackageKit compatibilty for AptDaemon
ii  python3-asn1crypto            0.24.0-1                 all          Fast ASN.1 parser and serializer (Python 3)
un  python3-astropy               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-bcrypt                3.1.6-1                  amd64        password hashing library for Python 3
ii  python3-blinker               1.4+dfsg1-0.2            all          fast, simple object-to-object and broadcast signaling library
un  python3-boto                  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-cairo:amd64           1.16.2-1build2           amd64        Python3 bindings for the Cairo vector graphics library
un  python3-cairocffi             <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-ccdproc               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-certifi               2018.8.24-1              all          root certificates for validating SSL certs and verifying TLS hosts (python3)
ii  python3-cffi-backend          1.12.3-1build1           amd64        Foreign Function Interface for Python 3 calling C code - runtime
un  python3-cffi-backend-api-9729 <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-cffi-backend-api-max  <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-cffi-backend-api-min  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-chardet               3.0.4-4                  all          universal character encoding detector for Python3
ii  python3-commandnotfound       19.10.0                  all          Python 3 bindings for command-not-found.
ii  python3-configobj             5.0.6-3                  all          simple but powerful config file reader and writer for Python 3
ii  python3-crypto                2.6.1-10                 amd64        cryptographic algorithms and protocols for Python 3
ii  python3-cryptography          2.6.1-3.1                amd64        Python library exposing cryptographic recipes and primitives (Python 3)
un  python3-cryptography-vectors  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-cups                  1.9.73-2build2           amd64        Python3 bindings for CUPS
ii  python3-cupshelpers           1.5.11-4ubuntu1          all          Python utility modules around the CUPS printing system
ii  python3-cycler                0.10.0-1                 all          composable kwarg iterator (Python 3)
un  python3-dask                  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-dateutil              2.7.3-3                  all          powerful extensions to the standard Python 3 datetime module
ii  python3-dbus                  1.2.12-1                 amd64        simple interprocess messaging system (Python 3 interface)
un  python3-dbus-dbg              <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-dbus.mainloop.pyqt5   5.12.3+dfsg-2            amd64        D-Bus Qt main loop support for Python 3
un  python3-dbusmock              <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-debconf               1.5.73                   all          interact with debconf from Python 3
ii  python3-debian                0.1.36                   all          Python 3 modules to work with Debian-related data formats
ii  python3-defer                 1.0.6-2build1            all          Small framework for asynchronous programming (Python 3)
ii  python3-dev                   3.7.5-1                  amd64        header files and a static library for Python (default)
ii  python3-distro                1.3.0-1                  all          Linux OS platform information API
ii  python3-distro-info           0.21ubuntu4              all          information about distributions' releases (Python 3 module)
ii  python3-distupgrade           1:19.10.15.4             all          manage release upgrades
ii  python3-distutils             3.7.5-1build1            all          distutils package for Python 3.x
ii  python3-dnspython             1.16.0-1                 all          DNS toolkit for Python 3
un  python3-doc                   <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-egenix-mxtexttools    <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-entrypoints           0.3-1                    all          Discover and load entry points from installed packages (Python 3)
ii  python3-eyed3                 0.8.8-1                  all          Python module for id3-tags manipulation (Python 3 version)
un  python3-f2py                  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-fasteners             0.12.0-5                 all          provides useful locks - Python 3.x
ii  python3-future                0.16.0-1                 all          Clean single-source support for Python 3 and 2 - Python 3.x
ii  python3-gdbm:amd64            3.7.5-1build1            amd64        GNU dbm database support for Python 3.x
un  python3-gdbm-dbg              <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-genshi                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-gi                    3.34.0-1                 amd64        Python 3 bindings for gobject-introspection libraries
ii  python3-gi-cairo              3.34.0-1                 amd64        Python 3 Cairo bindings for the GObject library
un  python3-gobject               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-gssapi                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-html5lib              1.0.1-1                  all          HTML parser/tokenizer based on the WHATWG HTML5 specification
ii  python3-httplib2              0.11.3-2                 all          comprehensive HTTP client library written for Python3
un  python3-icalendar             <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-idna                  2.6-2                    all          Python IDNA2008 (RFC 5891) handling (Python 3)
un  python3-imaging               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-imaplib2              <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-jwt                   1.7.0-2                  all          Python 3 implementation of JSON Web Token
ii  python3-keyring               18.0.1-1                 all          store and access your passwords safely - Python 3 version of the package
ii  python3-keyrings.alt          3.1.1-1                  all          alternate backend implementations for python3-keyring
ii  python3-kiwisolver            1.0.1-2build2            amd64        fast implementation of the Cassowary constraint solver - Python 3.X
ii  python3-launchpadlib          1.10.7-1                 all          Launchpad web services client library (Python 3)
ii  python3-lazr.restfulclient    0.14.2-1                 all          client for lazr.restful-based web services (Python 3)
ii  python3-lazr.uri              1.0.3-3                  all          library for parsing, manipulating, and generating URIs
ii  python3-ldb                   2:1.5.5-0ubuntu2         amd64        Python 3 bindings for LDB
ii  python3-lib2to3               3.7.5-1build1            all          Interactive high-level object-oriented language (2to3, version 3.6)
ii  python3-libdiscid             1.0-5                    amd64        libdiscid binding for Python 3
ii  python3-lockfile              1:0.12.2-2ubuntu1        all          file locking library for Python — Python 3 library
un  python3-lxml                  <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-magic                 2:0.4.15-2               all          python3 interface to the libmagic file type identification library
ii  python3-matplotlib            3.0.2-2                  amd64        Python based plotting system in a style similar to Matlab (Python 3)
un  python3-migrate               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-minimal               3.7.5-1                  amd64        minimal subset of the Python language (default python3 version)
ii  python3-monotonic             1.5-0ubuntu1             all          implementation of time.monotonic() - Python 3.x
ii  python3-mutagen               1.40.0-2                 all          audio metadata editing library (Python 3)
ii  python3-mygpoclient           1.8-2                    all          Client library for the gpodder.net web service
ii  python3-nacl                  1.3.0-2                  amd64        Python bindings to libsodium (Python 3)
ii  python3-netifaces             0.10.4-1build3           amd64        portable network interface information - Python 3.x
un  python3-nose                  <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-notify2               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-numpy                 1:1.16.2-1ubuntu1        amd64        Fast array facility to the Python 3 language
un  python3-numpy-abi9            <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-numpy-api13           <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-numpy-dbg             <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-numpy-dev             <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-oauthlib              2.1.0-1                  all          generic, spec-compliant implementation of OAuth for Python3
ii  python3-olefile               0.46-1                   all          Python module to read/write MS OLE2 files
un  python3-openssl               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-paramiko              2.6.0-1                  all          Make ssh v2 connections (Python 3)
ii  python3-pexpect               4.6.0-1                  all          Python 3 module for automating interactive applications
un  python3-pgmagick              <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-pil:amd64             6.1.0-1                  amd64        Python Imaging Library (Python3)
un  python3-pil-dbg               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pil.imagetk           <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pillow                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-pip                   18.1-5                   all          Python package installer
ii  python3-pkg-resources         41.1.0-1                 all          Package Discovery and Resource Access using pkg_resources
ii  python3-podcastparser         0.6.3-1                  all          Simplified, fast RSS parsing library (Python 3)
ii  python3-problem-report        2.20.11-0ubuntu8.2       all          Python 3 library to handle problem reports
un  python3-profiler              <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-psutil                5.5.1-1ubuntu0.19.10.1   amd64        module providing convenience functions for managing processes (Python3)
ii  python3-ptyprocess            0.6.0-1                  all          Run a subprocess in a pseudo terminal from Python 3
ii  python3-pycurl                7.43.0.2-0.1             amd64        Python bindings to libcurl (Python 3)
un  python3-pycurl-dbg            <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pygments              <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pylast                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-pymacaroons           0.13.0-3                 all          Macaroon library for Python 3
ii  python3-pyparsing             2.2.0+dfsg1-2            all          alternative to creating and executing simple grammars - Python 3.x
ii  python3-pyqt4                 4.12.1+dfsg-2build2      amd64        Python3 bindings for Qt4
un  python3-pyqt4-dbg             <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-pyqt5                 5.12.3+dfsg-2            amd64        Python 3 bindings for Qt5
un  python3-pyqt5-dbg             <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-pyqt5.qtmultimedia    5.12.3+dfsg-2            amd64        Python 3 bindings for Qt5's Multimedia module
ii  python3-pyqt5.qtopengl        5.12.3+dfsg-2            amd64        Python 3 bindings for Qt5's OpenGL module
ii  python3-pyqt5.qtpositioning   5.12.3+dfsg-2            amd64        Python 3 bindings for QtPositioning module
ii  python3-pyqt5.qtx11extras     5.12.3+dfsg-2            amd64        Python 3 bindings for QtX11Extras module
un  python3-pysimplesoap          <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pytest                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-pyxattr               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-qrtools               2.0~bzr33-2              all          high level library for reading and generating QR codes
ii  python3-renderpm:amd64        3.5.23-1                 amd64        python low level render interface
un  python3-renderpm-dbg          <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-reportlab             3.5.23-1                 all          ReportLab library to create PDF documents using Python3
ii  python3-reportlab-accel:amd64 3.5.23-1                 amd64        C coded extension accelerator for the ReportLab Toolkit
ii  python3-requests              2.21.0-1                 all          elegant and simple HTTP library for Python3, built for human beings
ii  python3-requests-unixsocket   0.1.5-3                  all          Use requests to talk HTTP via a UNIX domain socket - Python 3.x
ii  python3-samba                 2:4.10.7+dfsg-0ubuntu2.4 amd64        Python 3 bindings for Samba
un  python3-scipy                 <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-secretstorage         2.3.1-2                  all          Python module for storing secrets - Python 3.x version
ii  python3-setuptools            41.1.0-1                 all          Python3 Distutils Enhancements
ii  python3-simplejson            3.16.0-1ubuntu1          amd64        simple, fast, extensible JSON encoder/decoder for Python 3.x
ii  python3-sip                   4.19.18+dfsg-1           amd64        Python 3/C++ bindings generator runtime library
ii  python3-six                   1.12.0-2                 all          Python 2 and 3 compatibility library (Python 3 interface)
un  python3-skimage               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-smbc                  <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-socks                 <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-software-properties   0.98.5                   all          manage the repositories that you install software from
un  python3-speechd               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-swiftclient           <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-systemd               234-3                    amd64        Python 3 bindings for systemd
un  python3-tables                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-talloc                2.1.16-0ubuntu2          amd64        hierarchical pool based memory allocator - Python3 bindings
ii  python3-tdb                   1.3.18-2                 amd64        Python3 bindings for TDB
un  python3-testresources         <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-theano                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-tk:amd64              3.7.5-1build1            amd64        Tkinter - Writing Tk applications with Python 3.x
un  python3-tk-dbg                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-tornado               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-uno                   1:6.3.4-0ubuntu0.19.10.1 amd64        Python-UNO bridge
ii  python3-update-manager        1:19.04.8                all          python 3.x module for update-manager
ii  python3-urllib3               1.24.1-1ubuntu1          all          HTTP library with thread-safe connection pooling for Python3
un  python3-venv                  <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3-vobject               <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3-wadllib               1.3.3-2                  all          Python 3 library for navigating WADL files
ii  python3-webencodings          0.5.1-1                  all          Python implementation of the WHATWG Encoding standard
ii  python3-wget                  3.2-3                    all          pure Python download utility for Python 3
ii  python3-wheel                 0.32.3-2                 all          built-package format for Python
ii  python3-xapian                1.4.11-2                 amd64        Xapian search engine interface for Python3
ii  python3-xdg                   0.25-5                   all          Python 3 library to access freedesktop.org standards
ii  python3-xkit                  0.5.0ubuntu2             all          library for the manipulation of xorg.conf files (Python 3)
ii  python3-yaml                  5.1.2-1                  amd64        YAML parser and emitter for Python3
ii  python3-zbar:amd64            0.23-1.1                 amd64        bar code scanner and decoder (Python bindings)
un  python3-zeitgeist             <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.0                     <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.1                     <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.1-minimal             <keine>                  <keine>      (keine Beschreibung vorhanden)
rc  python3.4                     3.4.3-9ubuntu1           amd64        Interactive high-level object-oriented language (version 3.4)
un  python3.4-doc                 <keine>                  <keine>      (keine Beschreibung vorhanden)
rc  python3.4-minimal             3.4.3-9ubuntu1           amd64        Minimal subset of the Python language (version 3.4)
un  python3.4-venv                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.5                     <keine>                  <keine>      (keine Beschreibung vorhanden)
rc  python3.5-minimal             3.5.3-1ubuntu0~17.04.1   amd64        Minimal subset of the Python language (version 3.5)
un  python3.6                     <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.6-2to3                <keine>                  <keine>      (keine Beschreibung vorhanden)
rc  python3.6-minimal             3.6.8-1~18.10            amd64        Minimal subset of the Python language (version 3.6)
ii  python3.7                     3.7.5-2~19.10            amd64        Interactive high-level object-oriented language (version 3.7)
un  python3.7-2to3                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-apt                 <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-cairo               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-crypto              <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-cups                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-dbus                <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3.7-dev                 3.7.5-2~19.10            amd64        Header files and a static library for Python (v3.7)
un  python3.7-distutils           <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-doc                 <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-gdbm                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-lib2to3             <keine>                  <keine>      (keine Beschreibung vorhanden)
ii  python3.7-minimal             3.7.5-2~19.10            amd64        Minimal subset of the Python language (version 3.7)
un  python3.7-numpy               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-renderpm            <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-reportlab-accel     <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-samba               <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-talloc              <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-tdb                 <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-tk                  <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-venv                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.7-xapian              <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.8-distutils           <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.8-gdbm                <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.8-lib2to3             <keine>                  <keine>      (keine Beschreibung vorhanden)
un  python3.8-tk                  <keine>                  <keine>      (keine Beschreibung vorhanden)

Du kannst vorerst readSettings ändern in

Danke, aber für mich kein Thema mehr. Ich weiss es ja nun 😉

Axel-Erfurt

(Themenstarter)

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Ich habe PyQt5 mit pip installiert (--user), da gibt es mittlerweile schon Version 5.14

Version 5.12.3 dürfte aber nicht das Problem sein.

Wenn ich es in Mint per apt installiere bekomme ich nur Version 5.9

Gerade was KDE/Plasma betrifft gibt es auf github viele Berichte von Tray Problemen bei PyQt5 Apps.

Was das nicht beenden betrifft, hilft vielleicht ein extra quit() in closeEvent

1
2
3
4
    def closeEvent(self, e):
        print("writing settings ...\nGoodbye ...")
        self.writeSettings()
        QApplication.quit()

Als letzten Versuch kannst Du ja mal die letzte mit pyinstaller gemachte Version testen, habe sie gerade hochgeladen.

https://www.dropbox.com/s/zcw2lmrkqmpcto0/myRadio64.tar.gz?dl=1

Balu62

Avatar von Balu62

Anmeldungsdatum:
22. Oktober 2007

Beiträge: 904

Axel-Erfurt schrieb:

Ich habe PyQt5 mit pip installiert (--user), da gibt es mittlerweile schon Version 5.14

Genau so habe ich auch installiert. Unter Ubuntu sind die Versionen mit pip und apt identisch.

Was das nicht beenden betrifft, hilft vielleicht ein extra quit() in closeEvent Als letzten Versuch kannst Du ja mal die letzte mit pyinstaller gemachte Version testen, habe sie gerade hochgeladen.

Damit funktioniert das Beenden nun auch unter KDE einwandfrei. Bleibt wirklich nur noch das Rätsel mit dem nicht funktionierenden Trayicon... Ich installiere mir morgen mal Mint in einer VM. Dann wissen wir, ob ich was falsch mache... 😉

Bleys

Avatar von Bleys

Anmeldungsdatum:
13. August 2006

Beiträge: 6053

Sehr cool!

Danke dafür.

Axel-Erfurt

(Themenstarter)

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Bleys schrieb:

Sehr cool!

Danke dafür.

Welches System nutzt Du? (Distro, Desktop)

Bleys

Avatar von Bleys

Anmeldungsdatum:
13. August 2006

Beiträge: 6053

Ubuntu 18.04.3 5.3.0-28, Gnome 3.28.2

1
2
$ python --version
Python 2.7.17

Axel-Erfurt

(Themenstarter)

Anmeldungsdatum:
18. Mai 2016

Beiträge: 1347

Bleys schrieb:

Ubuntu 18.04.3 5.3.0-28, Gnome 3.28.2

Das hat ja der Balu62 auch, funktioniert denn bei Dir das TrayIcon, also Linksklick Menu und Rechtsklick Fenster anzeigen/verbergen ?

Balu62

Avatar von Balu62

Anmeldungsdatum:
22. Oktober 2007

Beiträge: 904

Axel-Erfurt schrieb:

Bleys schrieb:

Ubuntu 18.04.3 5.3.0-28, Gnome 3.28.2

Das hat ja der Balu62 auch, funktioniert denn bei Dir das TrayIcon, also Linksklick Menu und Rechtsklick Fenster anzeigen/verbergen ?

Ist jetzt bloss die Frage, ob sich Bleys überhaupt auf das Internetradio oder auf das eigentliche Thema dieses Threads - dem TV Programm - bezogen hat...

Balu62

Avatar von Balu62

Anmeldungsdatum:
22. Oktober 2007

Beiträge: 904

So, ich habe mir Mint 19.3 Mate in einer VM installiert. Die restliche Installation (PyQt5 usw.) habe ich genaue so installiert wie unter all den getesten x-buntus. Was soll ich sagen? Das Traxicon funktioniert einwandfrei! Einfach toll! Ich habe ja jetzt zum ersten Mal gesehen, wie das Menu aussieht und das ist genau was ich suche. Sehr gelungene Umsetzung!

Installiert wurde mir dann übrigens gleich das aktuelle PyQt5-5.14.1. Ich habe dann noch versuchsweise auf Ubuntu Mate (also selber Desktop wie bei Mint) mit pip3 install --upgrade pip PyQt5 ebenfalls auf PyQt5-5.14.1 hochgezogen, damit wirklich alles so identisch wie möglich ist. Das Trayicon funktioniert aber da nach wie vor nicht. Ich habe mal einen Screenshot angehängt, was eine Linksklick auf das Icon bewirkt (bei K/U/L-buntu passiert ja gar nichts). Was mir auch aufgefallen ist: Unter Mint kommen die "Tooltip"-Info-Fenster (Interpret, Titel, usw.) quasi direkt "aus" dem Icon. Bei den x-buntus werden diese völlig losgelöst, quasi als normales "Infofensterchen" angezeigt.

Falls Du also noch mal Lust hast, Dir ein paar Gedanken zu machen, wieso die Trayicons offenbar ausschliesslich unter Mint funktionieren, wäre das natürlich Klasse!

Vielen Dank zum Voraus, Stefan

Bilder

Bleys

Avatar von Bleys

Anmeldungsdatum:
13. August 2006

Beiträge: 6053

Axel-Erfurt schrieb:

Bleys schrieb:

Ubuntu 18.04.3 5.3.0-28, Gnome 3.28.2

Das hat ja der Balu62 auch, funktioniert denn bei Dir das TrayIcon, also Linksklick Menu und Rechtsklick Fenster anzeigen/verbergen ?

Ups.. Mein Danke bezog sich auf die TV Anwendung.

Hab aber Radiotray gerade mal ausprobiert. Sie startet mit Trayicon und offenem Fenster. Das Trayicon hat keine Funktion (Links- und Rechtsklick). Im Fenster lassen sich Sender auswählen. Es wird angezeigt das der Sender gespielt wird, allerdings ohne Soundausgabe.

[Nachtrag]

Screenshot: So startet er.

Und so sieht es aus wenn im Terminal starte:

1
2
3
4
5
6
7
8
9
ralf@nexus:~$ python3 ~/.local/share/InternetRadio/myRadio.py
qt5ct: using qt5ct plugin
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
wget found at  /usr/bin/wget  *** recording enabled
reading settings ...
playing http://listen.57fm.com/stream/3/
playing http://listen.57fm.com/stream/3/
qt5ct: D-Bus system tray: yes
Bilder

Bleys

Avatar von Bleys

Anmeldungsdatum:
13. August 2006

Beiträge: 6053

Ich habe mal just for fun mit rootrechten gestartet:

1
2
3
4
5
6
7
8
sudo -H python3 ~/.local/share/InternetRadio/myRadio.py
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
wget found at  /usr/bin/wget  *** recording enabled
reading settings ...
playing http://199.180.72.2:8607/
playing http://199.180.72.2:8607/

Da funktioniert das Trayicon! Sound kommt allerdings immer noch nicht.

[Nachtrag]

und ein anderer Sender wird beim Start ausgewählt.

Bleys

Avatar von Bleys

Anmeldungsdatum:
13. August 2006

Beiträge: 6053

1
sudo apt install libqt5multimedia5-plugins

Das hat gefehlt. Jetzt läuft es (bis auf die Trayfunktion):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ralf@nexus:~$ python3 ~/.local/share/InternetRadio/myRadio.py
qt5ct: using qt5ct plugin
wget found at  /usr/bin/wget  *** recording enabled
reading settings ...
playing http://listen.57fm.com/stream/3/
playing http://listen.57fm.com/stream/3/
qt5ct: D-Bus system tray: yes
mesa: for the   --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the   --global-isel-abort option: may only occur zero or one times!
playing http://1a-70er.radionetz.de:8000/1a-70er.mp3