Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1452080 Details for
Bug 1591973
Windows get permanently composited on the screen
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Script to show problem
qt-cm.py (text/x-python), 1.28 KB, created by
James Pearson
on 2018-06-15 22:12:55 UTC
(
hide
)
Description:
Script to show problem
Filename:
MIME Type:
Creator:
James Pearson
Created:
2018-06-15 22:12:55 UTC
Size:
1.28 KB
patch
obsolete
>#!/usr/bin/python ># ># gsettings set org.mate.Marco.general compositing-manager true ># ># gsettings set org.mate.Marco.general compositing-manager false > >from PyQt4.QtGui import * >from PyQt4 import QtCore >import sys > >class MyWidget(QFrame): > def __init__(self, parent=None): > super(MyWidget, self).__init__(parent) > > self.setAttribute(QtCore.Qt.WA_TranslucentBackground) > > self.state = 1 > > self.combo = QComboBox() > for a in ['A','B','C']: > self.combo.addItem(a) > self.btn = QPushButton("Toggle") > self.btnClose = QPushButton("Close") > self.btnClose.clicked.connect(self.close) > layout = QVBoxLayout() > layout.addWidget(self.combo) > layout.addWidget(self.btn) > layout.addWidget(self.btnClose) > layout.setContentsMargins(50,50,50,50) > self.setLayout(layout) > > self.btn.clicked.connect(self.updateComboState) > > def updateComboState(self): > self.state = (self.state%2)+1 > self.combo.setProperty("state", self.state) > self.combo.style().unpolish(self.combo) > self.combo.style().polish(self.combo) > self.update() > >ss = """ >*[state="1"] { > background: rgb(50,50,100); >} > >*[state="2"] { > background: rgb(50,100,50); >} >""" > >if __name__ == "__main__": > qapp = QApplication(sys.argv) > myApp = MyWidget() > myApp.setStyleSheet(ss) > myApp.show() > sys.exit(qapp.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 1591973
: 1452080