This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! python3 | |
# coding: utf-8 | |
import arrow | |
class CurrentDate(): | |
def __init__(self, tzinfo=None): | |
self.tzinfo = tzinfo | |
def _formatter(self, fmt): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! python3 | |
# coding: utf-8 | |
import re | |
import requests | |
class iTunesLink(): | |
def __init__(self, search_word, country="JP", limit=20): | |
self.country = country | |
self.limit = limit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When present("sheet"), will_close() is not called when the view is closed by swiping down. | |
import ui | |
import dialogs | |
class test(ui.View): | |
def will_close(self): | |
print("View closed.") | |
style = ["fullscreen", "sheet", "popover", "panel"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/danrcook/5b35e47628d28daec1d5ec7e909b4f95 | |
# original: https://github.com/tdamdouni/Pythonista/blob/master/slider/SliderWithLabel_danrcook.py | |
''' | |
SliderWithLabel is a wrapper for ui.Slider() for use in Pythonista on iOS. Provides an editable label for the display and setting of the slider value. | |
See SliderWithLabel class for detailed usage. | |
''' | |
__author__ = '@cook' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.amazon.co.jp/gp/aw/s/ref=is_box_?__mk_ja_JP=%83J%83%5E%83J%83i&k=_QS_ |