Skip to content
Pythonista
Branch: master
Clone or download
Latest commit bd31b83 Jun 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
AreYouEnabledView.py Added begin_editing() to focus on the text field Aug 12, 2014
AreYouEnabledView.pyui Create AreYouEnabledView.pyui Aug 10, 2014
MiniPhotoView.py remove touch and layout method Feb 16, 2016
MyImageView.py Create MyImageView.py Oct 18, 2014
MyView.py Update MyView.py Jun 29, 2019
NavigationViewExample.py Simplify code by adding make_button_item() Jan 3, 2015
NavigationViewExample.pyui Create NavigationViewExample.pyui Nov 16, 2014
README.md Update README.md Jun 29, 2019
ScrollView.py Update ScrollView.py Apr 17, 2016
ShowTableView.py Update ShowTableView.py Sep 1, 2014
ShowTableView.pyui Create ShowTableView.pyui Aug 12, 2014
SpecialButton.py Create SpecialButton.py Aug 23, 2014
SpecialButton.pyui Create SpecialButton.pyui Aug 23, 2014
SpecialButton2.py Create SpecialButton2.py Aug 24, 2014
SpecialButton3.py Rename Specialbutton2.py to SpecialButton3.py Feb 19, 2016
SwitchViews.py The modulus modification Jan 4, 2015
SwitchViews.pyui Create SwitchViews.pyui Nov 15, 2014
Three-Column-Sortable-TableView.py Update Three-Column-Sortable-TableView.py Mar 21, 2016
UsingSubviews.py Rename files Dec 23, 2014
UsingSubviews.pyui Update UsingSubviews.pyui Dec 24, 2014
Webbrowser.py Simplify code with addition of make_button_item() Jan 4, 2015
Webbrowser.pyui Update Webbrowser.pyui Sep 21, 2014
hello_world_v2.py Create hello_world_v2.py Aug 7, 2014
hello_world_v2.pyui Create hello_world_v2.pyui Aug 7, 2014
layout.py Removed the function Aug 11, 2014
layout.pyui Update layout.pyui Aug 10, 2014
layout2.pyui Update layout2.pyui Aug 9, 2014
license.txt Add files via upload Apr 23, 2017
load_ui.pdf create load_ui.pdf Dec 29, 2014
load_ui.py rename Untitled 1 Dec 23, 2014
load_ui.pyui rename Untitled 1 Dec 23, 2014
po.pyui Update po.pyui Aug 9, 2014
pop-over.py
pop-over.pyui Update pop-over.pyui Aug 9, 2014
segmented-control.py use view instead of v variable Dec 23, 2014
segmented-control.pyui Update segmented-control.pyui Oct 4, 2014
shoppinglist.py Update shoppinglist.py Sep 28, 2014
shoppinglist.pyui Update shoppinglist.pyui Sep 28, 2014
space.png add space.png Nov 15, 2014
switchview1.pyui rename test view Dec 23, 2014
ui-tutorial.pdf create ui-tutorial.pdf Jan 17, 2015

README.md

UI Tutorial

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:

You can’t perform that action at this time.