Skip to content

Instantly share code, notes, and snippets.

@toshinoritakata
Created August 26, 2012 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toshinoritakata/3473535 to your computer and use it in GitHub Desktop.
Save toshinoritakata/3473535 to your computer and use it in GitHub Desktop.
PySideでラベルの色を指定する
bg_color = (200, 100, 100)
label.setAutoFillBackground(True)
palette = label.palette()
palette.setColor(label.backgroundRole(), QtGui.QColor(*bg_color))
label.setPalette(palette)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment