Skip to content

Bug in !Hyper python demo program #25

@riscman

Description

@riscman

The ”Previous• button in the status line does not work for some cards. Eg:
The Toolbox — Object Templates
Tools
Tools.!DDT
Tools.ResEd
Tools.ResTest
What these cards have in common is that they have buttons.
The cards without buttons return to the previous card when previous is clicked. The cards with buttons do not.

If you delete the three buttons on the DDT card the ”previous• or ”back_handler• button works.

def back_handler(self, event, id_block, poll_block):
    card = self.history.pop() if len(self.history) else None
    self._display(card)

It looks as if the history stack is being corrupted by processing the buttons defined on the card.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions