@mikael the while loop is because i am making an idol clicker type thing and want inputs every time the button is pressed (i started out typing what the buttons would say on them to get the general idea)
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by NewbieCoder
-
RE: I need help(again)
-
I need help(again)
I cant exactly pinpoint what im doing wrong here but im in trouble again)))))
The a = sender.title line is being completely ignored and nothing shows up in the console
v = ui.View() v.frame = (0,0,400,400) v.name = 'test' b = ui.Button() b.title = 'use' b.action = 'tap' b.background_color = 'white' b.border_color = 'blue' b.border_width = 1 b.corner_radius = 5 b.frame = (10,10,100,32) v.add_subview(b) ba = ui.Button() ba.title = 'buy' ba.action = 'tap' ba.background_color = 'white' ba.border_color = 'blue' ba.border_width = 1 ba.corner_radius = 5 ba.frame = (110,10,100,32) v.add_subview(ba) a = '' v.present(“sheet”) while 0 == 0: def tap(sender): '@type sender: ui.Button' a = sender.title print(a)
-
RE: More than 1 button won’t show up
Holy БЛЯДЬ i see now.
I am such a тупица ТоТ
-
RE: Can you assign a button input to a variable
@ccc i set my phones date to Декабрь 2008)))))))))))
-
RE: More than 1 button won’t show up
The a = ‘’ isnt “ it is two of ‘ by the way
-
More than 1 button won’t show up
I have problem in which i cant make 2 buttons show up on the screen at once with this code
import ui
v = ui.View()
v.frame = (0,0,400,400)
v.name = 'test'b = ui.Button()
b.title = 'use'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (10,10,100,32)ba = ui.Button()
b.title = 'buy'
b.background_color = 'white'
b.border_color = 'blue'
b.border_width = 1
b.corner_radius = 5
b.frame = (110,10,100,32)a = ''
def tap(sender):
a = sender.title
print(a)
b.action = tap
v.add_subview(ba)
v.add_subview(b)
v.present('sheet')When i open the ui it only shows the button for the variable ba and doesnt show the variable b for the first button i made
Please tell me if i am doing something wrong or how to fix it -
How to use [ui Var].frame properly
Im a noob and im not really sure how to use the ui.frame command correctly to assign where a button will be located. Here is a case to show a bit further into my question...
import ui v = ui.View() v.frame = (0,0,400,400) v.name = 'test' b = ui.Button() b.title = 'My Title' b.background_color = 'white' b.border_color = 'blue' b.border_width = 1 b.corner_radius = 5 b.frame = (10,10,100,32) a = '' def tap(sender): a = sender.title print(a) b.action = tap v.add_subview(b) v.present('sheet')
-
RE: Can you assign a button input to a variable
Its just the prerson that tought me