Commit Graph

5 Commits

Author SHA1 Message Date
Nathan Hyde c61cc96a87 First Widget tutorial - use class variables
* Correct whitespace issues in 6_button.py
* Make "painter" a class variable (self.painter)
* Reference `self.clear_canvas` when binding the clear button callback
* Call `self.painter.canvas.clear()` in button callback
* Adjust the number of parameters for callback method
2015-07-01 16:19:08 -07:00
Charles Merriam 02c30a4e9f Fix examples/ PEP8 errors. Mostly white space.
This fixes a large number of white space errors in the examples/
directory.
When I upgraded Makefile to check the 'make style' on the examples
directory,
the output was hundreds of lines long.   Currently, the output is
managable
and consists solely of "lines too long", as kv lines cannot be split.
This
commit touches an obscene number of files in trivial ways.
2015-02-01 17:09:20 -08:00
Mathieu Virbel bae94bc3db first 2to3 pass + manual fix for metaclass, UserDict and OrderedDict 2013-03-18 17:39:56 -06:00
Mathieu Virbel 70891fce3e firstwidget: update the firstwidget introduction to remove userdata, and use only touch.ud + enhance docs. #closes 726 2012-10-25 12:01:43 +02:00
Mathieu Virbel 91db207124 doc: move firstwidget examples in examples/guide 2011-04-22 12:17:43 +02:00