Skip to content

set_title does nothing for BlockLabels #63

@WardBrian

Description

@WardBrian

Because BlockLabels uses _lines instead of _title, set_title does nothing.

To reproduce:

import py_cui
root = py_cui.PyCUI(2,2)
root.set_title('Block Labels')
label = root.add_block_label('Hello\nWorld', 0,0, row_span=2, column_span=2)
label.set_title('Goodbye\nWorld')
root.start()

Expected behavior
set_title(title) should set the BlockLabel's ._lines attribute to title.splitlines(), or an alternative function should be supplied to set the lines attribute directly.

Environment:

  • OS: Windows 10
  • Terminal: Powershell Core
  • Version: 0.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingDuplicateThis issue or pull request already existsGood first issueGood for newcomersWidgetsAdd for issues having to do with widgets

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions