~ubuntu-branches/debian/experimental/spyder/experimental

« back to all changes in this revision

Viewing changes to spyderlib/widgets/sourcecode/syntaxhighlighters.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2013-03-27 16:25:27 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20130327162527-kk4v2dr2fshy9ljf
Tags: 2.2.0~rc+dfsg-1
* Imported Upstream version 2.2.0~rc+dfsg
* Suggests: tortoisehg and gitk (Closes: #704064)

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
    
191
191
    def get_unmatched_p_color(self):
192
192
        return QColor(self.unmatched_p_color)
 
193
    
 
194
    def get_color_name(self, fmt):
 
195
        """Return color name assigned to a given format"""
 
196
        return self.formats[fmt].foreground().color().name()
193
197
 
194
198
    def setup_formats(self, font=None):
195
199
        base_format = QTextCharFormat()