How to Import Python library to clickable?



  • Hello, I'm new to ubuntu touch, and want to learn it as my Student project.
    So I installed Clickable and create example project like other newborn programmer do, "Hello World"
    Now it run smoothly with command clickable --desktop

    I want to improve it step by step. The first step that I want is import another python library into my .py
    but it got this
    0_1528172604624_Selection_152.png

    can you tell me the proper way to import python module and include it when build the click file?
    thank you





  • Clickable generate project files like this:

    *- clickable.json
    *- hello_world.desktop.in
    *- CMakeLists.txt
    *- hello_world.apparmor
    *- manifest.json.in
    assets/
     - logo.svg
    build/
    * - #this where you get the .click file
    po/
     - hello_world.gmnx.pot
     - CMakeLists.txt
    python-lib/
     - #shared object for target platform (.so file). there is python and pyotherside in this folder
    qml/
     - hello_world.py #the python logic is here
     - Main.qml
    

    it's different structure from the link that you shared
    0_1528177437828_Selection_153.png

    I can't find script folder and get_libs.py


Log in to reply
 

Looks like your connection to UBports Forum was lost, please wait while we try to reconnect.