GithubHelp home page GithubHelp logo

kivy / kivy Goto Github PK

View Code? Open in Web Editor NEW
17.0K 599.0 3.0K 74.3 MB

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS

Home Page: https://kivy.org

License: MIT License

Python 67.27% GLSL 0.02% C 6.52% Objective-C 0.07% Emacs Lisp 0.20% Makefile 0.10% Shell 0.57% PowerShell 0.11% Cython 23.65% kvlang 0.87% Vim Script 0.04% C++ 0.02% Objective-C++ 0.56%
python ui windows ios android macos linux app kivy

kivy's Issues

support callback

Today, we binding automaticly property to an expression.

How about statement on a callback ? For on_touch_*, on_press, on_release, on_, this could be just a callback with a statement.

Fix MacMultitouchSupport on OSX

[ERROR ] [Input ] MacMultitouchSupport is not supported by your system
Traceback (most recent call last):
File "/Users/dennda/dev/kivy/kivy/input/providers/init.py", line 24, in
from kivy.input.providers.mactouch import *
File "/Users/dennda/dev/kivy/kivy/input/providers/mactouch.py", line 24, in
MultitouchSupport = ctypes.CDLL()
TypeError: init() takes at least 2 arguments (1 given)

Scatter Example Color Issue

When I run the app_scatter example, the image is colored incorrectly. Happens as soon as I click. So I guess the color from the circle around the cursor is set, but then when the image is drawn it's not set back to white or something like that.

Fix Kivy Website Navigation Panel

The navigation panel on http://kivy.org/docs/# is not scrollable and for some screen resolutions the quick search box on the bottom of the navigation panel is hidden from view. Only when the user uses the Full Screen mode of Mozilla Firefox is the quick search box visible. This problem does not affect Chromium Web Browser since it has more web page area on display.
The resolution of my laptop on which I noticed this issue is 1366x768.

Versionning of portable-deps-osx

The osx portable-deps contain hardcoded version number.
Search and replace all version number with a tag like {{VERSION}}
Then update build.py to search & replace with the current version

textbox widget

A very good textbox widget with :

  • multiline support
  • clipboard support
  • keyboard shortcut support

Enhance App class

  • add properties for title, description, author, website
  • autoload the kv associated to the app

documentation

make a documentation for average users :
-add "self" in fonctions definition

make documentation for Color
add some example

Compiler cache error with Color

Currently, we automatically ignore context if they are no change, and the flag update only the branch touched by the changes.

But if you have this scheme:

  • Canvas A
    • Canvas B
      • Color white
      • Rectangle
    • Canvas C
      • Color white
      • Rectangle

In Canvas C, color white will be flagged as GI_IGNORE.
If the canvas B add a color, or change his color, only canvas B and A are flagged as "need to be updated". But C should be tagged too, because the color left after the rendering of Canvas B will be not ok for Canvas C.

Don't use reversed() in on_touch_*

This reversed was needed before... but rereading this make me think we don't need it anymore.
Since we have 2 tree, the widgets tree can be already ordered for touch event, since the graphics tree can be ordered for drawing.
So... ? :)

Canvas missing needs_redraw property

Actually, we cannot know if a canvas need redrawing or not.
The update flag is set, but never unset.

If we unset it on draw, nothing is showed on the screen...

support import

Be able to load external code from the definition langage

Support id

We should be able to use id, same as self. and root.
Ids must be local to a template, or global to an application.

support cls and id rules

Today, the style will apply as soon as the class is created. It should be after all the parameters set

Label/Button draw small glitch when text kwarg is None

Not that bad, but I wouldn't really expect it, so I'd say it's a bug:

See the following example:
Also works with Label of course (but then you need to choose a non-black BG color to see it).

from kivy.app import App
from kivy.uix.button import Button

class MyApp(App):
def build(self):
return Button()

MyApp().run()

support template

So, at the end, we will have in the language : Application (root widget), Rules (for styling), Templates (reusable tree).

The templates part must be customized. I'm suggesting something like :

  Beer@Widget:
    Label:
      text: data.title
    Label:
      text: data.description

And data is a dictionnary binded at creation :

  my_custom_beer = Builder.build_template('Beer', {...})

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.