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
import dialogs | |
import datetime | |
import ui | |
from objc_util import * | |
#================ copy dialogs.form_dialog: begin | |
import collections | |
import sys | |
PY3 = sys.version_info[0] >= 3 | |
if PY3: |
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
from objc_util import * | |
import ctypes | |
import ui | |
from math import pi | |
from ImageColor import getrgb | |
import threading | |
from random import random | |
import multipeer, platform | |
import ast |
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
# todo | |
# - right aligned keys? | |
import ui | |
from objc_util import * | |
import ui | |
from objc_util import * | |
def SetTextFieldPad(tf, pad=None, clearButtonMode=False, undo_redo_pasteBarButtons=True, textfield_did_change=None): | |
if not pad: |
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
# - bug: if too much photos (10?), previous at left disappears too quickly | |
# - bug: rerun sometimes crashes even if Pythonista app restarts too quickly | |
from objc_util import * | |
import ui | |
import math | |
import photos | |
import time | |
import threading | |
load_framework('SceneKit') |
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
from objc_util import * | |
import ui | |
def preferredInterfaceOrientationForPresentation(_self,_cmd): | |
#self = ObjCInstance(_self) # UIViewController | |
#print('preferredInterfaceOrientationForPresentation:',self) | |
return 3 # UIInterfaceOrientationLandscapeLeft | |
@on_main_thread | |
def main(): |
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
# coding: utf-8 | |
# https://gist.github.com/shaun-h/da54aafc2aeaf5a316e8de1b56d19fd3 | |
from __future__ import absolute_import | |
from objc_util import * | |
import ui | |
from collections import OrderedDict | |
from six.moves import range | |
import console | |
UITableView = ObjCClass('UITableView') |
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
''' | |
todo | |
.. Priorité | |
ok - record Aliment points_base et base et option ingredients | |
.. - 1️⃣ revoir add_food | |
.. - ❗️pas créer aliment si nom existe déjà | |
check dans ecran où on tape le nom et le ok | |
.. - ecrans où on doit checker | |
.. - nom: pas vide, inexistant | |
.. - kcal: vide? ou numerique |