Coder Social home page Coder Social logo

creating_apps_in_kivy's Introduction

creating_apps_in_kivy

This is the example code than accompanies Creating Apps in Kivy by Dusty Phillips (9781491946671).

Click the Download Zip button to the right to download example code.

Visit the catalog page here.

See an error? Report it here, or simply fork and send us a pull request.

creating_apps_in_kivy's People

Contributors

aseronick 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  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creating_apps_in_kivy's Issues

No JSON object could be decoded

When running the example 2-9 for map search , it shows following error

Traceback (most recent call last):
File "/home/sagun/PycharmProjects/Weatherapp/waap.py", line 36, in
WeatherApp().run()
File "/usr/lib/python2.7/dist-packages/kivy/app.py", line 600, in run
runTouchApp()
File "/usr/lib/python2.7/dist-packages/kivy/base.py", line 454, in runTouchApp
EventLoop.window.mainloop()
File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py", line 325, in mainloop
self._mainloop()
File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_pygame.py", line 231, in _mainloop
EventLoop.idle()
File "/usr/lib/python2.7/dist-packages/kivy/base.py", line 294, in idle
Clock.tick()
File "/usr/lib/python2.7/dist-packages/kivy/clock.py", line 370, in tick
self._process_events()
File "/usr/lib/python2.7/dist-packages/kivy/clock.py", line 481, in _process_events
if event.tick(self._last_tick) is False:
File "/usr/lib/python2.7/dist-packages/kivy/clock.py", line 280, in tick
ret = callback(self._dt)
File "/usr/lib/python2.7/dist-packages/kivy/network/urlrequest.py", line 319, in _dispatch_result
func(self, data)
File "/home/sagun/PycharmProjects/Weatherapp/waap.py", line 22, in found_location
data = json.loads(data.decode())
File "/usr/lib/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

app.root.childern

def on_config_change(self,config,section,key,value):
if config is self.config and key=="temp_type":
try:
print(self.root.children)
except :
pass

output:
[<main.CurrentWeather object at 0x0916AAB0>]

in chapter 6 example 6-11
i could not undrstand why CurrentWeather is child of WeatherRoot
in fact i think AddLocationForm should be its child

can any body explain this?

Chapter 12 Image Assets and Code Missing

The last chapter references a number of images assets:

  • background.png (starfield)

  • ship.zip (collection of PNGs of the ship for animation)

  • enemies.atlas

  • enemies-0x.png (x being from 1-3)

    Neither the code nor the images assets are there. (Unless the assumption is that the reader ought to replicate everything themselves.)

API Key

The book indicates "no need", but OpenWeatherMap needs an API key from now on.

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.