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 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 | |
| # 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 | |
| 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
| 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
| f_str = [ | |
| { | |
| "selected" : False, | |
| "frame" : "{{0, 0}, {320, 480}}", | |
| "class" : "View", | |
| "nodes" : [ | |
| { | |
| "selected" : False, | |
| "frame" : "{{0, 233}, {320, 32}}", | |
| "class" : "Label", |
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 | |
| ''' | |
| code copied from dialogs.py Pythonista 1.6 beta, @omz (Ole Zorn) | |
| specially the parts of the code that present a datepicker | |
| in a dialog with animation and a shield of the dialogs contents | |
| a few mods made | |
| ''' | |
| _country_list = ['Afghanistan', 'Albania', 'Algeria', 'American Samoa', 'Andorra', 'Angola', 'Anguilla', 'Antarctica', 'Antigua and Barbuda', 'Argentina', 'Armenia', 'Aruba', 'Australia', 'Austria', 'Azerbaijan', 'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados', 'Belarus', 'Belgium', 'Belize', 'Benin', 'Bermuda', 'Bhutan', 'Bolivia', 'Bosnia and Herzegovina', 'Botswana', 'Brazil', 'Brunei Darussalam', 'Bulgaria', 'Burkina Faso', 'Burundi', 'Cambodia', 'Cameroon', 'Canada', 'Cape Verde', 'Cayman Islands', 'Central African Republic', 'Chad', 'Chile', 'China', 'Christmas Island', 'Cocos (Keeling) Islands', 'Colombia', 'Comoros', 'Democratic Republic of the Congo (Kinshasa)', 'Congo, Republic of (Brazzaville)', 'Cook Islands', 'Costa Rica', 'Ivory Coast', 'Croatia', 'Cuba', ' |
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 | |
| # *** DISCLAIMER PLEASE READ *** | |
| # please understand, i am a newbie. being a newbie, | |
| # my code may be crap or worse buggy | |
| # i still like to share. it could be useful code. | |
| # or parts of could be useful | |
| # but i like the feedback |
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 | |
| # *** DISCLAIMER PLEASE READ *** | |
| # please understand, i am a newbie. being a newbie, | |
| # my code may be crap or worse buggy | |
| # i still like to share. it could be useful code. | |
| # or parts of could be useful | |
| # but i like the feedback |
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 | |
| # *** DISCLAIMER PLEASE READ *** | |
| # please understand, i am a newbie. being a newbie, | |
| # my code may be crap or worse buggy | |
| # i still like to share. it could be useful code. | |
| # or parts of could be useful | |
| # but i like the feedback |