コード例 #1
0
 def __init__(self, name, color, parent=None, pmapColor=None):
     ListElement.__init__(self, name, parent)
     self._brushColor = color
     if pmapColor is None:
         self._pmapColor = color
     else:
         self._pmapColor = pmapColor
コード例 #2
0
ファイル: labelListModel.py プロジェクト: fdiego/ilastik
 def __init__(self, name, color, parent = None, pmapColor=None):
     ListElement.__init__(self, name,parent)
     self._brushColor = color
     if pmapColor is None:
         self._pmapColor = color
     else:
         self._pmapColor = pmapColor
コード例 #3
0
 def __init__(self, name, color, density=0.0, fontsize=12, linewidth=2, fontcolor=QColor(255,255,255), parent = None):
     ListElement.__init__(self, name, parent)
     self._density    = density
     self._color = color
         
     self._fontsize=fontsize
     self._linewidth=linewidth
     self._fontcolor=fontcolor
     
     
     
     self._fixvalue=self._density # a fixed box should have this set to a particular value
     self._isFixed=False        
     self._register_signals()
コード例 #4
0
    def __init__(self,
                 name,
                 color,
                 density=0.0,
                 fontsize=12,
                 linewidth=2,
                 fontcolor=QColor(255, 255, 255),
                 parent=None):
        ListElement.__init__(self, name, parent)
        self._density = density
        self._color = color

        self._fontsize = fontsize
        self._linewidth = linewidth
        self._fontcolor = fontcolor

        self._fixvalue = self._density  # a fixed box should have this set to a particular value
        self._isFixed = False
        self._register_signals()