Skip to content

Scripts that use WidgetColor are broken #3776

@kasemir

Description

@kasemir

#3716 moved the WidgetColor class, which breaks all scripts that used widget colors, including these examples:

conway/life_ui.py:from org.csstudio.display.builder.model.properties import WidgetColor
fishtank/scripts/Analyze.py:from org.csstudio.display.builder.model.properties import WidgetColor
fishtank/scripts/Analyze.py:    color = WidgetColor(255, 0, 255) # PINK
fishtank/scripts/Analyze.py:    color = WidgetColor(180, 50, 255) # PURPLE
fishtank/scripts/Analyze.py:    color = WidgetColor(255, 50, 50) # RED
fishtank/scripts/Analyze.py:    color = WidgetColor(255, 155, 50) # ORANGE
fishtank/scripts/Analyze.py:    color = WidgetColor(255, 255, 50) # YELLOW
fishtank/scripts/Analyze.py:    color = WidgetColor(200, 200, 255) # LIGHT_BLUE 
fishtank/scripts/Analyze.py:    color = WidgetColor(0, 255, 0) # GREEN
mondrian/mondrian.bob:from org.csstudio.display.builder.model.properties import WidgetColor
mondrian/mondrian.bob:line = WidgetColor(0, 0, 0)
mondrian/mondrian.bob:                              WidgetColor(randint(50, 255), randint(50, 255), randint(50, 255)))
monitors_table.bob:from org.csstudio.display.builder.model.properties import WidgetColor
monitors_table.bob:    table.setCellColor(0, 0, WidgetColor(255, 0, 0))
monitors_table.bob:    table.setCellColor(1, 1, WidgetColor(0, 255, 0))
monitors_table.bob:    table.setCellColor(1, 1, WidgetColor(255, 0, 0))
monitors_table.bob:    table.setCellColor(0, 0, WidgetColor(0, 255, 0))
monitors_table.bob:from org.csstudio.display.builder.model.properties import WidgetColor
monitors_table.bob:    colors[1][0] = WidgetColor(255, 0, 0)
monitors_table.bob:    colors[2][1] = WidgetColor(0, 255, 0)
monitors_table.bob:    colors[1][0] = WidgetColor(0, 255, 0)
monitors_table.bob:    colors[2][1] = WidgetColor(255, 0, 0)
solitaire/solitaire.py:from org.csstudio.display.builder.model.properties import WidgetColor
solitaire/solitaire.py:mark = WidgetColor(255, 0, 0)
sudoku/sudoku.py:from org.csstudio.display.builder.model.persist import WidgetColorService
sudoku/sudoku.py:from org.csstudio.display.builder.model.properties import WidgetColor
sudoku/sudoku.py:from org.csstudio.display.builder.model.persist import NamedWidgetColors
sudoku/sudoku.py:text = WidgetColorService.getColor(NamedWidgetColors.TEXT)
sudoku/sudoku_entry.py:                                  WidgetColorService.getColor(NamedWidgetColors.ALARM_MAJOR))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions