GithubHelp home page GithubHelp logo

kovak / kivysurvey Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 4.0 240 KB

The KivySurvey widget allows you to embed surveys defined via json into your application.

License: MIT License

Python 100.00%

kivysurvey's People

Contributors

kovak avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

kivysurvey's Issues

TypeError: __init__() missing 1 required positional argument: 'name'

I am facing this error in while running the init.py file.
File "C:\Users\Sean Gray\Desktop\Python\KivySurvey-master\KivySurvey-master\kivy_survey_init_.py", line 355, in init
self.db_interface = DBInterface(self)
TypeError: init() missing 1 required positional argument: 'name'
Can't detect the error on my own.

Builder adds handlers ('on_touch_down', 'on_touch_up', etc) to widgets, disregarding if the method is called on the widget

I think in kivy/kivy/lang.py

if rule.handlers:                                                                                                                                                                    
    rctx['hdl'].append((widget.proxy_ref, rule.handlers)) 

shoule be replaced by

    for handler in rule.handlers:
        idmap = copy(global_idmap)
        idmap.update(rctx['ids'])
        idmap['self'] = widget.proxy_ref
        if hasattr(widget.proxy_ref, handler.name):
    method = getattr(widget.proxy_ref, handler.name)
            def new_method(*args):
                method(*args)
                exec handler.value in idmap
            setattr(widget.proxy_ref, handler.name, new_method)
        else:
            def new_method(*args):
                exec handler.value in idmap
            setattr(widget.proxy_ref, handler.name, new_method)

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.