def AddColCheckBox(self, columnName, subColumns):
     col = self.AddColumnContainer(width=CHECKBOX_COL_WIDTH, padRight=0)
     isDirector = any([ role.roleID == const.corpRoleDirector for subColumnName, role in subColumns ])
     if isDirector:
         checkbox = Checkbox(parent=col, align=uiconst.CENTER, checkedTexture='res:/UI/Texture/Shared/checkboxHalfChecked.png')
     else:
         checkbox = TriCheckbox(parent=col, align=uiconst.CENTER, pos=(-2, 0, 16, 16))
     checkbox.LoadTooltipPanel = self.LoadCBTooltip
     self.SetCheckboxAttributes(checkbox, subColumns)
     self.checkboxes.append(checkbox)
Exemplo n.º 2
0
 def AddColCheckBox(self, columnName, subColumns):
     col = self.AddColumnContainer(width=CHECKBOX_COL_WIDTH, padRight=0)
     isDirector = any([ role.roleID == const.corpRoleDirector for subColumnName, role in subColumns ])
     if isDirector:
         checkbox = Checkbox(parent=col, align=uiconst.CENTER, checkedTexture='res:/UI/Texture/Shared/checkboxHalfChecked.png')
     else:
         checkbox = TriCheckbox(parent=col, align=uiconst.CENTER, pos=(-2, 0, 16, 16))
     checkbox.LoadTooltipPanel = self.LoadCBTooltip
     self.SetCheckboxAttributes(checkbox, subColumns)
     self.checkboxes.append(checkbox)
 def DrawCheckboxes(self):
     for typeConst in ACCESS_TYPES:
         c = Container(parent=self.myGridCont,
                       padding=1,
                       state=uiconst.UI_NORMAL)
         cbName = 'cb_%i' % typeConst
         cb = Checkbox(name=cbName,
                       parent=c,
                       checked=False,
                       align=uiconst.CENTER)
         cb.sr.diode.left = 3
         cb.LoadTooltipPanel = self.LoadCBTooltip
         self.checkBoxes.append(cb)
 def AddColCheckBox(self, title):
     col = self.AddColumnContainer(width=CHECKBOX_COL_WIDTH, padRight=0)
     checkbox = Checkbox(parent=col, align=uiconst.CENTER)
     checkbox.LoadTooltipPanel = self.LoadCBTooltip
     self.SetCbAttributes(checkbox, title)
Exemplo n.º 5
0
 def AddColCheckBox(self, title):
     col = self.AddColumnContainer(width=CHECKBOX_COL_WIDTH, padRight=0)
     checkbox = Checkbox(parent=col, align=uiconst.CENTER)
     checkbox.LoadTooltipPanel = self.LoadCBTooltip
     self.SetCbAttributes(checkbox, title)