Skip to content

[not-a-bug][help-wanted] How to change border colors of selected buttons #173

@strawberry-code

Description

@strawberry-code

I am trying to change the color of the borders of the button which the cursor is pointing on.

I am trying by this without success:

def render(self):
      for key in self.master.get_widgets().keys():
          if self.master.get_widgets()[key].is_selected():
              self.master.get_widgets()[key].set_color(py_cui.RED_ON_BLACK)
          else:
              self.master.get_widgets()[key].set_color(py_cui.CYAN_ON_BLACK)

I kindly ask for little help here. What's wrong? If it is possibile to achieve it...

In the picture below I would the button "Show Yes No Popup" be colored in RED_ON_BLACK.

Schermata 2022-02-01 alle 19 22 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions