Skip to content

Instantly share code, notes, and snippets.

@cvpe
cvpe / a.py
Created May 14, 2020 16:03
a.py
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():
@cvpe
cvpe / MyUITableView.py
Created October 6, 2020 06:05
MyUITableView.py
# 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')
@cvpe
cvpe / WeightWatchers.py
Created October 10, 2020 19:44
WeightWatchers.py
'''
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