Kv Language Assignment

For this assignment you will write a small app which uses Python plus the Kv language.

For this assignment you will want to refer to the in_class-kv_files example repository that we saw in class and the official Kv language guide here:

https://kivy.org/docs/guide/lang.html

App Requirements

At a minimum, your app must have 3 widgets arranged vertically:

The hulk smash example placed a Label and a Button within a BoxLayout, which resulted in widgets that were arranged horizontally. Here it is more appropriate to use a GridLayout with only 1 column so that they will be arranged vertically.

Your 3 widgets must be added to the grid layout using a .kv file.

The text input area must start out containing some text that informs the user that they should type there. The Kv language guide has some examples of using TextInput widgets, and you can search around for further examples as well.

The label area must start out with no text at all.

When the button is pressed, the label’s text must be updated so that it is the same as the input.

Here are screenshots of my solution.

When the app initially starts up:

After typing in some text and pressing “Submit”:

Submission

The assignment comes with a README but no other files. Create a Python file and a Kv file for your solution, add them to git, and push when you are finished.

In addition to the above requirements, your code will also be graded for style, including PEP 8 compliance and variable naming. git-keeper will not tell you the result of running pep8 this time, you must make sure it is compliant on your own. You can use the hulk smash example as a starting point, but all of the names and other associated text must be changed so that they are appropriate for this application.

If you want, feel free to play around with other options to make your app look better than my simple solution, as long as you still adhere to the above requirements. If you do so, I recommend getting to the simple solution first, committing and pushing, and then working on it more. That way if you get your code to a messy place you will still have submitted something clean that works.