Skip to content

Commit

Permalink
Merge pull request #47 from freakboy3742/clarify-code-instructions
Browse files Browse the repository at this point in the history
Clarify the instructions about how code should be updated.
  • Loading branch information
freakboy3742 committed May 2, 2020
2 parents 61bd8b0 + fbf772c commit 89c239f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/tutorial/tutorial-2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ content into the application, and make the app do something interesting.
Adding some content of our own
==============================

Modify your ``HelloWorld`` class inside ``src/helloworld/app.py`` so that it looks like this::
Modify your ``HelloWorld`` class inside ``src/helloworld/app.py`` so that it
looks like this::

class HelloWorld(toga.App):
def startup(self):
Expand Down Expand Up @@ -145,6 +146,11 @@ Modify your ``HelloWorld`` class inside ``src/helloworld/app.py`` so that it loo
def say_hello(self, widget):
print("Hello", self.name_input.value)

.. note::

Don't remove the imports at the top of the file , or the ``main()`` at the
bottom. You only need to update the ``HelloWorld`` class.

Let's look in detail at what has changed.

We're still creating a main box; however, we are now applying a style::
Expand Down

0 comments on commit 89c239f

Please sign in to comment.