Home | Trees | Indices | Help |
|
---|
|
1 from PyQt4 import QtGui, QtCore 2 3 from customeditor import AbstractCustomEditor 46 """An editor that behaves like a note, the editor hides itself when 7 there is no text to display""" 83010 QtGui.QLabel.__init__(self, parent) 11 AbstractCustomEditor.__init__(self) 12 self.setTextFormat(QtCore.Qt.RichText) 13 from camelot.view.art import ColorScheme 14 style = """ 15 QLabel { 16 margin: 0px; 17 padding: 3px; 18 border: 1px solid black; 19 color: black; 20 background-color: %s; 21 } 22 """%(ColorScheme.yellow_1.name()) 23 self.setStyleSheet( style );24
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Jun 12 15:42:10 2010 | http://epydoc.sourceforge.net |