This file contains hidden or 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
| import ui | |
| ''' | |
| dict of dicts | |
| key == x.__class.__name__ | |
| value = dict of the defaults for the object | |
| ''' | |
| _std_defaults = \ | |
| { | |
| 'Button' : { | |
| 'tint_color': 'blue', |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| import inspect | |
| import sys | |
| import os | |
| import copy | |
| import warnings |
This file contains hidden or 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
| # coding: utf-8 | |
| # coding: utf-8 | |
| import ui | |
| import os | |
| class PYUILoaderStr(ui.View): | |
| ''' |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| from collections import namedtuple | |
| import string | |
| MasterRec = namedtuple('MasterRec', 'title,image,accessory_type') | |
| _interface_bg = 'navy' |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| from pygments import highlight | |
| from pygments.formatters import HtmlFormatter | |
| from pygments.styles import get_style_by_name | |
| from pygments.lexers import get_lexer_by_name | |
| from pygments.styles import get_all_styles | |
| """ |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| from pygments import highlight | |
| from pygments.formatters import HtmlFormatter | |
| from pygments.styles import get_style_by_name | |
| from pygments.lexers import get_lexer_by_name | |
| from pygments.styles import get_all_styles | |
| class CodeDisplay(ui.View): |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| ''' | |
| Date: 10 March 2016 | |
| Pythonista 2.01 beta | |
| PageIndicator Class | |
| =================== | |
| An attempt to mimick the page indicator found in some iOS interfaces | |
| supports circles/rects, defaults to circles. |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| import time | |
| from math import pi, sin, cos, radians | |
| # a dict for kwargs shortcuts | |
| _indicator_attr_short_cuts = \ | |
| { | |
| 'cw' : 'cell_width', |
This file contains hidden or 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
| # coding: utf-8 | |
| # coding: utf-8 | |
| import calendar | |
| import datetime as dt | |
| import ui | |
| class CalendarView(ui.View): #here | |
| def __init__(self,fldname,dateval,action=None, *args, **kwargs): #here |
This file contains hidden or 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
| # coding: utf-8 | |
| import ui | |
| # Pythonista Forum - @Phuket2 | |
| # for @ccc , should be pep8 ok and pyflakes :) | |
| # No break through here. just expanded on the Pythonista help | |
| # code for ui.ImageContext | |
| # draw text in a circle, and return a ui.image |