Giter Site home page Giter Site logo

Comments (3)

m-col avatar m-col commented on September 24, 2024

Sorry, I don't know, I'm not aware of any examples with pywlroots and I've never done anything with globals or custom protocols so can't help here :/

from pywlroots.

flacjacket avatar flacjacket commented on September 24, 2024

Hmm, interesting. Is the protocol defined in xml or are you doing it purely in Python? If it were, you could use the pywayland scanner to generate the protocol. I'm honestly not sure what it'd mean to define one Python alone, a lot of the functionality was setup to be built up from xml. There is a reasonable amount of things that are done in some of the automagic decorators and cffi cdata generation that might need to be setup manually here.

from pywlroots.

Shinyzenith avatar Shinyzenith commented on September 24, 2024

Hmm, interesting. Is the protocol defined in xml or are you doing it purely in Python? If it were, you could use the pywayland scanner to generate the protocol. I'm honestly not sure what it'd mean to define one Python alone, a lot of the functionality was setup to be built up from xml. There is a reasonable amount of things that are done in some of the automagic decorators and cffi cdata generation that might need to be setup manually here.

It's this protocol https://github.com/Shinyzenith/NextWM/blob/master/protocols/next-control-v1.xml
Hence the following import: from pywayland.protocol.next_control_v1 import NextControlV1 # ignore: type

from pywlroots.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.