humberry / ui-tutorial

Pythonista

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI Tutorial

alt text alt text alt text

As you surely noticed there are two ways of writing a ui-script. If you use only a few GUI elements you might write all the code in your script.py, but that's not what is here. Here is how to use the UI design tool to speed up the process and write only little code. To get a summary see the ui-tutorial.pdf.

  • load_ui.py - Shows how to load a .pyui file
  • hello_world_v2.py - Change the label every second
  • shoppinglist.py - Button, tableview and textfield use
  • layout.py - Automatic resize ui elements
  • pop-over.py - Barebone example of how to use a pop over view
  • AreYouEnabledView.py - Advanced example with textfield_did_change, console_alert, speech, etc... (written by cclauss)
  • ShowTableView.py - Directory table, empty table and table with different accessory_types/images
  • UsingSubviews.py - Demonstrates how to add and remove subviews
  • Webbrowser.py - Example of a basic web browser
  • SpecialButton.py - Control all touch events (touch_began, touch_moved, touch_ended)
  • segmented-control.py - Example of how to use a segmented control (written by tjferry14)
  • MyImageView.py - View all JPGs in the current directory
  • NavigationViewExample.py - Shows an example of using the Navigation View
  • SwitchViews.py - Show and hide different views
  • MiniPhotoView.py - Shows up to 100 photos from your camera roll
  • Three-Column-Sortable-TableView.py - Sort any of the three columns in ascending or descending order
  • MyView.py – When is layout and when is draw called. Draw with icon, line and text.

Other UI scripts can be found here:

About

Pythonista

License:Other


Languages

Language:Python 100.0%