Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. self.color_button16 = QtWidgets.QPushButton(self.centralwidget)
  2. self.gridLayout.addWidget(self.color_button16, 3, 0)
  3. self.color_button16.setMinimumSize(30, 30)
  4. self.color_button16.setMaximumSize(30, 30)
  5. self.color_button16.setStyleSheet("background-color :khaki")
  6. self.color_button16.clicked.connect(self.setcolor15)
  7.  
  8. def setcolor15(self):
  9. self.textEdit.setStyleSheet("background-color :khaki")
  10. MainWindow.statusBar().showMessage('Zmieniono kolor.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement