ALT Linux Bugzilla
– Attachment 10938 Details for
Bug 42998
Управление значком в трее Mate (mate-panel) нарушено
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
Простейший пример с QSystemTrayIcon
qt5-set-visible.py (text/x-python), 398 bytes, created by
Vitaly Lipatov
on 2022-06-19 03:17:15 MSK
(
hide
)
Description:
Простейший пример с QSystemTrayIcon
Filename:
MIME Type:
Creator:
Vitaly Lipatov
Created:
2022-06-19 03:17:15 MSK
Size:
398 bytes
patch
obsolete
>import sys > >from PyQt5 import QtGui, QtWidgets > >app = QtWidgets.QApplication([]) >app.setQuitOnLastWindowClosed(False) > >main_window = QtWidgets.QMainWindow() > >tray = QtWidgets.QSystemTrayIcon( > QtGui.QIcon.fromTheme("view-refresh"), > main_window >) > >def messageClicked(): > tray.setVisible(False) > print('Hello') > >tray.activated.connect(messageClicked) >tray.show() > >sys.exit(app.exec_()) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 42998
: 10938 |
10939