-
-
Save Gadgettyke/bf248fc278ffe1ac300a5229b59177f5 to your computer and use it in GitHub Desktop.
try.py
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 | |
from ui import * | |
def button_action(sender): | |
'@type sender: ui.Button' | |
# get button title | |
t = sender.title | |
print(t) | |
v = ui.load_view('try') | |
v.present('sheet') |
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
[ | |
{ | |
"nodes" : [ | |
{ | |
"nodes" : [ | |
], | |
"frame" : "{{84, 39}, {80, 32}}", | |
"class" : "Button", | |
"attributes" : { | |
"uuid" : "AD562F07-3B8D-49B8-A15D-83EAB8FD406C", | |
"frame" : "{{80, 104}, {80, 32}}", | |
"title" : "Button", | |
"class" : "Button", | |
"name" : "button1", | |
"font_size" : 15 | |
}, | |
"selected" : true | |
}, | |
{ | |
"nodes" : [ | |
], | |
"frame" : "{{80, 104}, {80, 32}}", | |
"class" : "Button", | |
"attributes" : { | |
"uuid" : "35697536-D9A5-4352-8A76-D16954D9BE38", | |
"frame" : "{{80, 104}, {80, 32}}", | |
"title" : "Button", | |
"class" : "Button", | |
"name" : "button2", | |
"font_size" : 15 | |
}, | |
"selected" : false | |
}, | |
{ | |
"nodes" : [ | |
], | |
"frame" : "{{80, 159}, {80, 32}}", | |
"class" : "Button", | |
"attributes" : { | |
"uuid" : "1067899E-2F33-42CC-85F2-DCBDF4068DBA", | |
"frame" : "{{80, 104}, {80, 32}}", | |
"title" : "Button", | |
"class" : "Button", | |
"name" : "button3", | |
"font_size" : 15 | |
}, | |
"selected" : false | |
} | |
], | |
"frame" : "{{0, 0}, {240, 240}}", | |
"class" : "View", | |
"attributes" : { | |
"enabled" : true, | |
"background_color" : "RGBA(1.000000,1.000000,1.000000,1.000000)", | |
"tint_color" : "RGBA(0.000000,0.478000,1.000000,1.000000)", | |
"border_color" : "RGBA(0.000000,0.000000,0.000000,1.000000)", | |
"flex" : "" | |
}, | |
"selected" : false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment