This contains a collection of small examples that cover ios pythonista ui module functionality based on the examples from pythonista forum and the examples provided with the app.
- incdec.py, incdec.pyui - example with label and button
- See Calculator.py in examples/User Interface directory for a more elaborate example
- incdec1.py - above example without using pyui
- dogcat.py, dogcat.pyui - example with imageview and circular button with background image
- dogcat1.py - above example without using pyui
- imageview_in_scrollview - image size is not changed by putting inside scrollview, read from photos
- basic_ui_elements.py - modify label using textfield, segmentedcontrol, datepicker, switch, slider and button
- See ColorMixer.py in examples/User Interface directory for a more elaborate example
- buttonitem_example.py - view with button items
- lorem_generator - textview example
- table_example1,2,3,4 - tableview examples
- from forum
- file navigation https://github.com/dgelessus/filenav/blob/master/litenav.py
- fill rows based on the characters that are entered on textfield
- from forum
- webview1,2 - webview examples
- running javascript example https://gist.github.com/encela95dus/3b672b4119b598064d2c943158fabaad
- dialog examples
- editlist_dialog_test.py
- form_dialog_with_sections.py
- multiselection_list_dialog.py
- pyui_pretty_print.py - file selection dialog
- custom dialog from designer
- image manipulation
- creating image
- imagecontext1.py
- creating images by drawing shapes and copying images
- show it on console and save it in a file
- imagecontext2.py - drawing rotated text (using GState and coordinate transformation)
- imagecontext3.py - drawing a polygon
- imagecontext4.py - drawing an image inside a polygon
- imagecontext1.py
- basic_image_transform.py - converting PIL image to ui.Image and vice versa, applying some PIL image transformation
- create image by taking snapshot of a view
- omz gists for image manipulation
- creating images using designer
- creating image
- customview examples
- customview1.py, radio_button.py
- custonview_imagemask.py - drawing a masked image (image inside a polygon) in a custom view
- interactive drawing in customview - see sketch.py in examples directory
- update functionality examples digitalclock.py, stopwatch.py, analogclock
- from forum
- UI components https://github.com/jsbain/uicomponents
- UI tools in Pythonista Tools https://github.com/Pythonista-Tools/Pythonista-Tools/blob/master/UI.md
- update functionality
- animation examples
- animate1.py - animating color
- animation2.py - animating scale, alpha and move
- transform playground https://forum.omz-software.com/topic/2268/view-transform-origin
- direct replacement for ui.animate with more easing functions and support for chaining several animations to run on sequence
- viewslide.py
- delay_test.py
- from forum
- navigationview example
- navigationview_example.py, navtest_mainview, navtest_subview1,2
- navigation view from pyui templates
- scrollview - from forum
- mapview - from forum
- https://gist.github.com/omz/451a6685fddcf8ccdfc5
- https://forum.omz-software.com/topic/3507/need-help-for-calling-an-objective_c-function/2
- https://forum.omz-software.com/topic/3511/show-on-a-map-the-chronological-route-of-your-photos/1
- https://forum.omz-software.com/topic/4990/display-thumbs-of-your-photos-at-their-locations-on-a-map/1
- scene examples
- animation examples in examples directory
- games examples in examples directory
- basic_nodes.py
- change_attributes.py
- change_positions.py
- update_example.py
- scene_action1,2,3
- textanimation.py
- textanimation_wayy.py
- scene_viewexample.py - scene embedded in a view
- digital_watch.py, stop_watch.py - more examples on update
- action_based_timer.py
- animations from forum
- games from forum
- shader
- shader_example1.py - basic example to run shaders
- template_shadertoy.py - template to run shadertoy examples
- https://www.shadertoy.com/ contains a large collection of shader examples
- from forum
- an introductory online book on shaders to learn shaders
- https://forum.omz-software.com/topic/3274/fast-color-change-animation-of-a-shape
- simple tools - to be added to editor action menu
- clipboard_image_on_console
- clipboard_image_share.py
- clipboard_view_edit_save.py
- from forum
- retrieve multiple files in a gist in one click
- retrieve files from dropbox
- editor action - tools using editor module, to be added to editor action menu
- backup_editor.py - create a copy of file
- comment_uncomment.py
- display_editor_path.py
- pyui_pretty_print.py
- preview_markup.py
- preview_html.py
- appex examples
- convert_to_gray_image.py - basic appex code
- examples/extension directory has more examples
- download_binary.py - download a file (images, text) from url