Code Monkey home page Code Monkey logo

Comments (3)

rainbowdesign avatar rainbowdesign commented on June 17, 2024

I would like to have one more example:
I have a list or a dictionary with a counters in it.
Now i want to create items on the user interface
that display the counters and update them on change
Also you may want to attach the example to the documentation of bind since there is a lack of documentation.

from kivybits.

rainbowdesign avatar rainbowdesign commented on June 17, 2024

Minor Documentation improvement:
http://kivy.org/docs/api-kivy.uix.layout.html?highlight=layout
should have a link to how to paint a background to it (this one: http://kivy.org/docs/guide/widgets.html?highlight=background#adding-a-background-to-a-layout ), this is a very frequent asked question.

However still there is not clear how to paint a background over lets say a box layout:

with layout_instance.canvas.before:
Color(0, 1, 0, 1) # green; colors range from 0-1 instead of 0-255
self.rect = Rectangle(size=layout_instance.size,
pos=layout_instance.pos)

Does not do the job since it only paints a small rectangle

    c.add_widget(
        AsyncImage(
            source="http://www.everythingzoomer.com/wp-content/uploads/2013/01/Monday-joke-289x277.jpg",
            size_hint= (1, .5),
            pos_hint={'center_x':.5, 'center_y':.5}))

again paints only a small picture and i see no way to scale it, it seems to ignore size.

from kivybits.

Zen-CODE avatar Zen-CODE commented on June 17, 2024

Hi

  1. I believe the GridLayout docs do cover isometric vs. non-isometric via size hints. A grid implies vertical + horizontal dividers, and size_hint can make this non-isometric. You could also look at kivy3dlayout for 3d effects.
    https://github.com/kpiorno/kivy3dgui

  2. Background painting had now been covered.

  3. The other examples requests are a bit vague and numerous. Please open a ticket per examples with greater detail.

Thansk

from kivybits.

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.