Skip to content

please provide a merged example of pyQt usage AND observer/key_press callbacks #302

Description

@tempest766

The Qt example works fine accept there is no documented indication how to implement the observers or key bindings. The example on observer/key-binding requires the player object to be global, which doesn't fit in with a well designed OO plan.

I can find no syntax for

@player.property_observer('time-pos') or @player.on_key_press('q')
that works as a class method where player is a class instance variable.

Alternately what observer/callbacks can be presented from the mpv module when run inside the pyQt event loop?

Are the two mutually incompatible? If so, it would be good to document that rather than rely purely on "documentation by example".

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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