Browse Source

code review

Falko Schindler 3 years ago
parent
commit
7c9bdd689e
2 changed files with 6 additions and 7 deletions
  1. 6 2
      README.md
  2. 0 5
      main.py

+ 6 - 2
README.md

@@ -1,13 +1,17 @@
-<img src="https://raw.githubusercontent.com/zauberzeug/nicegui/main/sceenshots/ui-elements.png" width="300" align=right>
+<img src="https://raw.githubusercontent.com/zauberzeug/nicegui/main/sceenshots/ui-elements.png" width="300" align="right">
 
 # NiceGUI
 
 NiceGUI is an easy-to-use, Python-based UI framework, which renders to the web browser.
 You can create buttons, dialogs, markdown, 3D scenes, plots and much more.
 
-It's great for micro web apps, dashboards, robotics projects, smart home solutions and similar use cases.
+It is great for micro web apps, dashboards, robotics projects, smart home solutions and similar use cases.
 You can also use it in development, for example when tweaking/configuring a machine learning algorithm or tuning motor controllers.
 
+NiceGUI is available as [PyPI package](https://pypi.org/project/nicegui/), [Docker image](https://hub.docker.com/r/zauberzeug/nicegui) and on [GitHub](https://github.com/zauberzeug/nicegui).
+
+<style>a img {display: inline}</style>
+
 [![PyPI version](https://badge.fury.io/py/nicegui.svg)](https://pypi.org/project/nicegui/)
 [![PyPI - Downloads](https://img.shields.io/pypi/dm/nicegui)](https://pypi.org/project/nicegui/)
 [![Docker Pulls](https://img.shields.io/docker/pulls/zauberzeug/nicegui)](https://hub.docker.com/r/zauberzeug/nicegui)<br />

+ 0 - 5
main.py

@@ -2,7 +2,6 @@
 import asyncio
 import inspect
 import re
-import sys
 from contextlib import contextmanager
 from typing import Callable, Union
 
@@ -107,7 +106,6 @@ with ui.row().classes('flex w-full'):
                 ui.label('Output:')
                 output = ui.label('').classes('text-bold')
 
-
 with example(ui.label):
     ui.label('some label')
 
@@ -327,7 +325,6 @@ with example(async_dialog):
 
     ui.button('Await a dialog', on_click=show)
 
-
 tooltip = '''### Tooltips
 Simply call the `tooltip(text:str)` method on UI elements to provide a tooltip.
 '''
@@ -428,7 +425,6 @@ with example(binding):
         ui.toggle({1: 'a', 2: 'b', 3: 'c'}).bind_value(demo, 'number')
         ui.number().bind_value(demo, 'number')
 
-
 with example(ui.timer):
     from datetime import datetime
 
@@ -480,7 +476,6 @@ with example(ui.page):
     ui.link('Visit other page', '/other_page')
     ui.link('Visit dark page', '/dark_page')
 
-
 with example(ui.open):
     with ui.page('/yet_another_page') as other:
         ui.label('Welcome to yet another page')