NiceGUI For Beginners: Build An UI to Python App in 5 Minutes

preview_player
Показать описание
In this video, we are going to check NiceGUI a Python library that can help us build UIs for our Python apps.

We are going threw the basics to understand some of the things NiceGUI has to offer including adding a header, a footer, and a sidebar.

Article:

#nicegui
Рекомендации по теме
Комментарии
Автор

Is there a tool that helps with the layout? Like placing text, buttons, etc in the browser using a WYSIWYG editor?

For example, placing a button in the middle of the window with a red border all around:
import ctypes
from nicegui import ui, app

# Load user32.dll
user32 = ctypes.windll.user32

def show_message_box():
# Call the MessageBoxW function from user32.dll
user32.MessageBoxW(None, "Hello World", "Message", 0)

def main():
# Create a NiceGUI button
ui.button("Show MessageBox", on_click=show_message_box)

# Run the NiceGUI app
ui.run()

if __name__ in {"__main__", "__mp_main__"}:
main()

bennguyen
join shbcf.ru