Skip to content

Instantly share code, notes, and snippets.

@cvpe
cvpe / Move cursor in TextView.py
Created Mar 3, 2019
Move cursor in TextView.py
View Move cursor in TextView.py
import ui
from objc_util import *
import clipboard
import speech
v = ui.View()
v.frame = (0,0,500,320)
v.name = 'Move cursor in TextView'
tv = ui.TextView()
@cvpe
cvpe / Move cursor in TextView.py
Created Mar 14, 2019
Move cursor in TextView.py
View Move cursor in TextView.py
import ui
from objc_util import *
import clipboard
import speech
v = ui.View()
v.frame = (0,0,500,320)
v.name = 'Move cursor in TextView'
tv = ui.TextView()
@cvpe
cvpe / Move cursor in TextView.py
Created Mar 14, 2019
Move cursor in TextView.py
View Move cursor in TextView.py
import ui
from objc_util import *
import clipboard
import speech
v = ui.View()
v.frame = (0,0,500,320)
v.name = 'Move cursor in TextView'
tv = ui.TextView()
@cvpe
cvpe / Move cursor in TextView.py
Created Mar 17, 2019
Move cursor in TextView.py
View Move cursor in TextView.py
import ui
from objc_util import *
import clipboard
import speech
v = ui.View()
v.frame = (0,0,500,320)
v.name = 'Move cursor in TextView'
tv = ui.TextView()
View t.py
import ui
from objc_util import *
import clipboard
import speech
v = ui.View()
v.frame = (0,0,500,320)
v.name = 'Move cursor in TextView'
tv = ui.TextView()
@cvpe
cvpe / live capture recognition.py
Last active Sep 9, 2019
live capture recognition.py
View live capture recognition.py
# https://github.com/jsbain/objc_hacks/blob/master/live_camera_view.py
# https://gist.github.com/omz/a7c5f310e1c8b829a5a613cd556863d4
from objc_util import *
import os
from time import sleep
import ui
# Configuration (change URL and filename if you want to use a different model):
#MODEL_URL = 'https://docs-assets.developer.apple.com/coreml/models/MobileNet.mlmodel'
MODEL_FILENAME = 'mobilenet.mlmodel'
@cvpe
cvpe / Emojis Keyboard.py
Created Sep 15, 2019
Emojis Keyboard.py
View Emojis Keyboard.py
import keyboard
import ui
from objc_util import *
import clipboard
import speech
import sys
import time
import threading
@cvpe
cvpe / Emojis Keyboard.py
Created Sep 15, 2019
Emojis Keyboard.py
View Emojis Keyboard.py
import keyboard
import ui
from objc_util import *
import clipboard
import speech
import sys
import time
import threading
@cvpe
cvpe / Scenekit test.py
Created Sep 22, 2019
Scenekit test.py
View Scenekit test.py
# todo
# - bug: remove keyboard si confirm/cancel/close
# - bug: cancel ne devrait pas changer les parameters
# - label title pour self.name
# - actions: simultanees
# - flag repeat for ever
# - button reset default au niveau de chaque param? ou de forme/action?
# - scroll_view largeur variable a calculer (ex: fields de cube)
# - revoir couleur fond formes puis celles des params, face puis material
# - video ou camera uniqt si action
@cvpe
cvpe / dialog new field types.py
Created Dec 24, 2019
dialog new field types.py
View dialog new field types.py
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: