🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Import python module in UIFlow project

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 2 Posters 6.1k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nicolas
      last edited by

      Hello,
      I would like to use a Python class from this project in order to send commands directly to my X-Plane flight simulator.
      Is there a way to import a python class to a UIFlow project?
      I guess I could use a custom block but for now it doesn't work (when I click on create *.m5b file, a window shows a 502 bad Gateway error on both UIFlowDesktop and online)

      Thanks,

      Nicolas

      1 Reply Last reply Reply Quote 0
      • world101W Offline
        world101
        last edited by

        Try using the Execute block in uiFlow to import the module and also for any custom commands.

        1 Reply Last reply Reply Quote 0
        • N Offline
          nicolas
          last edited by nicolas

          thanks @world101
          I've seen this block but I can't manage to paste anything in it, it looks like pasteboard doesn't work in UIFlow IDE ... do you know any workaround ? (besides emulating keystrokes ...)

          Edit : Ok I managed to drag and drop the code in the Execute block text field, and I think we can edit it in the Python tab. Will try stuff now, thanks !

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post