File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
lib/matplotlib/backends/qt4_editor Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -92,29 +92,17 @@ def choose_color(self):
92
92
def get_color (self ):
93
93
return self ._color
94
94
95
- < << << << HEAD
96
- @pyqtSignature ("QColor" )
97
- == == == =
98
95
@QtCore .Slot ("QColor" )
99
- >> >> >> > 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
100
96
def set_color (self , color ):
101
97
if color != self ._color :
102
98
self ._color = color
103
99
self .emit (SIGNAL ("colorChanged(QColor)" ), self ._color )
104
100
pixmap = QPixmap (self .iconSize ())
105
101
pixmap .fill (color )
106
- << << << < HEAD
107
- self .setIcon (QIcon (pixmap ))
108
- == == == =
109
102
self .setIcon (QtGui .QIcon (pixmap ))
110
103
111
104
color = QtCore .Property ("QColor" , get_color , set_color )
112
- >> >> >> > 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
113
105
114
- color = pyqtProperty ("QColor" , get_color , set_color )
115
-
116
- < << << << HEAD
117
- == == == =
118
106
def to_qcolor (color ):
119
107
"""Create a QColor from a matplotlib color"""
120
108
qcolor = QtGui .QColor ()
@@ -126,7 +114,6 @@ def to_qcolor(color):
126
114
return qcolor # return invalid QColor
127
115
qcolor .setNamedColor (color ) # set using hex color
128
116
return qcolor # return valid QColor
129
- > >> >> >> 8 bba2a4 ... Merge pull request #2328 from mspacek/qtapi
130
117
131
118
def text_to_qcolor (text ):
132
119
"""
You can’t perform that action at this time.
0 commit comments