Skip to content

Instantly share code, notes, and snippets.

Avatar

Karl Hoitsma khoitsma

View GitHub Profile
View List.md

Groceries

  • mustard
  • mayonnaise
  • bacon
  • pickles
  • lettuce
  • tomatoes
  • onions
View augmented_slider.py
# credit: mikaelho / pythonista – gestures
# credit: tdamdouni / Pythonista
# credit: Pythonista / slider / SliderWithLabel_danrcook.py
class AugmentedSliderWithLabel(ui.View):
'''wrapper for ui.Slider to also show a label. You can edit the value of the slider directly in the label since it is a textfield. Can take the following keyword arguments:
- for the slider:
>> value: default value when presented (should be a number that is less than max_val and greater than 0). The default is 50
>> max_val: the default for a usual slider is 1.0. SliderWithLabel will conventiently multiply the max_val for the label display and for returning it's value attribute. The default is 100
@khoitsma
khoitsma / overlay_test.py
Last active Oct 30, 2018
Pythonista Overlay Test
View overlay_test.py
# credit: github.com/mikaelho/pythonista-gestures
# credit: github.com/jsbain/viewbrowser
from overlay import Overlay, AppWindows
from gestures import Gestures
import ui
if __name__=='__main__':