Giter Club home page Giter Club logo

pylvgl's People

Contributors

rreilink avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pylvgl's Issues

Instantiate displays from Python

Currently, the pylvgl binding creates one framebuffer with default size. It should be possible to create new displays of custom size (or not create one at all, if this would be done by some other (C-) part of the application)

PyLVGL for Mobile / Android / iOS?

Hello world :-)

Would that be possible to use PyLVGL for mobile applications development? :-)

The best part is that is can be used to create desktop applications in place of Qt or even FLTK.

That would be delightful if PyLVGL could be used as replacement for ugly JS solutions like React Native :-)

Did anyone try that / consider that? :-)

Here is my question directly on the LVGL project: lvgl/lvgl#2664

Demo fails to run

Installed via:

git clone --depth 1 --recurse-submodules -j8 https://github.com/rreilink/pylvgl.git
cd pylvgl
pip install .

Demo run:

QSettings::value: Empty key passed
QSettings::value: Empty key passed
Traceback (most recent call last):
  File "/home/vshymanskyy/Business/Blynk/blynk-library/examples/Blynk.Edgent/pylvgl/demo.py", line 34, in <module>
    win = LvglWindow();
  File "/home/vshymanskyy/Business/Blynk/blynk-library/examples/Blynk.Edgent/pylvgl/demo.py", line 10, in __init__
    self.setMinimumSize(lvgl.HOR_RES, lvgl.VER_RES)
AttributeError: module 'lvgl' has no attribute 'HOR_RES'

Tried commenting-out some lines, but more errors appear

Add more info to docstring of generated methods

It would be useful for user clarity and tooltip generation in the lv_gui_builder if the docstring of generated methods had more information.

For example, right now, calling:

import inspect
import lvgl
inspect.getdoc(lvgl.Btn.set_auto_realign)

will print 'void lv_obj_set_auto_realign(lv_obj_t *obj, bool en)'. This is a good start. Perhaps this info could be formatted in such a way that it could be both human and machine-readable. A simple dictionary would do:

signature: void lv_obj_set_auto_realign(lv_obj_t *obj, bool en)
help: Enable autorealignment for this lvgl object

or something like that.

Support for LVGL 6.0

I'm starting work on the python-based LVGL GUI builder. I think it would be nice to target the upcoming 6.0 release since it supports runtime configuration of certain things like display resolution.

I have been working on updating the python binding generation code to work with LVGL 6.0 (see my fork branch here: https://github.com/AGlass0fMilk/pylvgl/tree/gui-builder-dev)

I am running into a few issues. I have gotten the generated bindings to compile. When I try to import the python library it complains about undefined symbols. So I'm tracing down those one-by-one.

I haven't really worked on Python bindings for C before, let alone the pycparser. I understand how the template is involved.

I'd like to get involved in development of this alongside the GUI builder. @rreilink when you have time can you submit issues that detail things that need to be done? Where is this binding lacking? How could it be better?

Installing pylvgl doesn't seem to make the module globally available

After installing pylvgl (by running python3 setup.py install) I wasn't able to import the module from other directories that didn't directly have pylvgl as a subdirectory.

This may be confusing so I reproduced the error in the following way:

# Create a virtualenv for testing
virtualenv python-test
source ./python-test/bin/activate
cd ~/Documents/pylvgl # you can import lvgl here
python3 setup.py install
cd ~/Documents # you will still be able to import lvgl here
mkdir test && cd test # attempting to import lvgl here will fail!

Missing "Python.h" during install

Hi,

I'm the author of LittlevG Land I've just found your project. It looked awesome! If you agree and your project become ready to use I'd like to advertise it on littelvgl.com .

So I was trying to install but got this error:

$ python setup.py install
running build
running build_ext
building 'lvgl' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/lvgl
creating build/temp.linux-x86_64-2.7/lvgl/lv_core
creating build/temp.linux-x86_64-2.7/lvgl/lv_draw
creating build/temp.linux-x86_64-2.7/lvgl/lv_hal
creating build/temp.linux-x86_64-2.7/lvgl/lv_misc
creating build/temp.linux-x86_64-2.7/lvgl/lv_objx
creating build/temp.linux-x86_64-2.7/lvgl/lv_themes
creating build/temp.linux-x86_64-2.7/lvgl/lv_misc/lv_fonts
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-3hk45v/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c lvglmodule.c -o build/temp.linux-x86_64-2.7/lvglmodule.o
lvglmodule.c:1:10: fatal error: Python.h: No such file or directory
 #include "Python.h"
          ^~~~~~~~~~

Can you help with that?

PyLVGL depends on Qt ??

Hello world :-)

I just found LVGL / PyLVGL. I thought it could be replacement for Qt on platforms where Qt/PyQT is not available easily out of the box (i.e. FreeBSD). But demo.py and examples requires Qt !!

from PyQt5 import QtGui, QtWidgets, QtCore

from PyQt5 import QtGui, QtWidgets, QtCore

Is it possible to create demo that does not require Qt? It could use OpenGL / EGL / Framebuffer directly :-)

Why use PyLVGL if it required Qt anyway?

Thanks :-)

Documentation

Document:

  • How the bindings generator works (conceptually and more in-depth)
  • How certain c features in the code map to Python
  • Memory management

installation error

hello,
i am using python 3.7.2 on windows 10
when i try to install the package i get the error:
"error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2"
i tried to appdate several visual studio c++ versions but there is no change,

there is also the solution to use this page:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
but the package is not there.

also i am getting another error:
"lvglmodule.c(3): fatal error C1083: Cannot open include file: 'lvgl/lvgl.h': No such file or directory"
whrer shoul be the lvgl.h file ?

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.