What’s on the Pythonista menu? Yep, sliders! Side dish of booleans, integers and floats Dec 2018

I built this app and am running this app on my iPad. Credit to: mikaelho / pythonista – gestures tdamdouni / Pythonista Pythonista / slider / SliderWithLabel_danrcook.py The video shows an app with 8 inputs — 2 integer, 4 float, 2 boolean. Numeric input is tedious — at best; slider input is easier and offers positive feedback. In this […]

get_next, get_prev, in Python OrderedDict Aug 2018

I provide an example class based on an OrderedDict — with an adjunct dictionary to index to the next and prev OrderedDict entry. In my case, I have a rather static OrderedDict: it is a dictionary of AISC shape objects. The function set_prev_next() must be called after each operation that modifies OrderedDict. class MyClass(coll.OrderedDict): mynpdict […]