Skip to content

Commit 1ed4b89

Browse files
updated readme.md with ruff formatting
1 parent 3cb2d34 commit 1ed4b89

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,14 @@ Button:
102102
text: "Hello World"
103103
"""
104104

105+
105106
class MainApp(App):
106107
def build(self):
107108
return Builder.load_string(kv)
108109

110+
109111
app = MainApp()
110-
trio.run(app.async_run, "trio")
112+
trio.run(app.async_run, 'trio')
111113
```
112114

113115
#### Advanced (recommended package structure)
@@ -141,7 +143,7 @@ import trio
141143
from hello_world import HelloWorldApp
142144

143145
app = HelloWorldApp()
144-
trio.run(app.async_run, "trio")
146+
trio.run(app.async_run, 'trio')
145147
```
146148

147149
`hello_world/app.py`
@@ -150,6 +152,7 @@ trio.run(app.async_run, "trio")
150152
from kivy_reloader.app import App
151153
from hello_world.screens.main_screen import MainScreen
152154

155+
153156
class HelloWorldApp(App):
154157
def build(self):
155158
return MainScreen()
@@ -173,6 +176,7 @@ from kivy_reloader.lang import Builder
173176
174177
Builder.load_file(__file__)
175178
179+
176180
class MainScreen(Screen):
177181
pass
178182
```

0 commit comments

Comments
 (0)