liveBook · Manning

UI design

As explained in Build Python Web Apps with Streamlit

User-interface design is the practice of structuring an application's visual elements and interaction behavior for users.

UI design structures an application's visual elements and interaction behavior around a real user need. Start by turning the app concept into requirements, then work backward from the experience users should have. section 3.0

A practical UI-design workflow is:

  • Define what users must enter, choose, and receive. section 3.0
  • Sketch the intended experience with pen and paper, a whiteboard, or drawing software. section 3.4.1
  • Implement the design with available interface elements, then adjust it when practical constraints or better options appear. section 3.4.1

Unit converter mock-up

A unit converter can begin with a numeric input, a category selector, two unit selectors, and a Convert button. The category limits both unit lists to relevant choices, and the converted answer appears below. The sketch need not be polished; it should make the intended user outcome visible before coding. section 3.4.1

Figure 3.2 A mock-up of the unit conversion app

Use the mock-up to inspect the proposed arrangement of inputs, selectors, action, and result before implementation. section 3.4.1

How Build Python Web Apps with Streamlit covers it

How deep it goes
Works from requirements to a preliminary mock-up and iterative implementation adjustments.
Examples
Uses a unit converter mock-up with numeric input, unit selectors, category filtering, a Convert button, and an output.
What it assumes
Assumes a user need and basic requirements while teaching interface planning before code.
What you can do after
Build it from scratch by sketching a user-centered interface and mapping it to Streamlit elements.
How it connects
Connects requirements, user experience, code organization, and Streamlit widgets.

Also explained in

Compare how 3 books explain UI design →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.