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 | |
import math | |
load_framework('SceneKit') | |
SCNView, SCNScene, SCNBox ,SCNNode, SCNMaterial, SCNCamera, SCNLookAtConstraint , SCNLight, SCNPlane= map(ObjCClass, ['SCNView', 'SCNScene', 'SCNBox' ,'SCNNode', 'SCNMaterial', 'SCNCamera', 'SCNLookAtConstraint', 'SCNLight', 'SCNPlane']) | |
class SCNVector3 (Structure): | |
_fields_ = [('x', c_float), ('y', c_float), ('z', c_float)] |
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 ui | |
import sys | |
class TextViewFile(object): | |
def __init__(self, textview): | |
self.textview = textview | |
def write(self, msg): | |
self.textview.text += msg |
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 -*- | |
from collections import defaultdict | |
import re | |
class AsaiMaps(): |
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 ui | |
def closepage(sender): | |
v.close() | |
def function_1(sender): | |
v['label1'].text = 'Oh! You clicked my button.' | |
#uncomment or comment lines below based on platform | |
#v = ui.MainView(frame=(0, 0, 600, 450)) # kivy |
OlderNewer