• NewbieCoder

    @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)

    posted in Pythonista read more
  • NewbieCoder

    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)
    

    posted in Pythonista read more
  • NewbieCoder

    @cvp What do you mean

    posted in Pythonista read more
  • NewbieCoder

    Holy БЛЯДЬ i see now.

    I am such a тупица ТоТ

    posted in Pythonista read more
  • NewbieCoder

    @ccc i set my phones date to Декабрь 2008)))))))))))

    posted in Pythonista read more
  • NewbieCoder

    Why you bully me)))

    posted in Pythonista read more
  • NewbieCoder

    The a = ‘’ isnt “ it is two of ‘ by the way

    posted in Pythonista read more
  • NewbieCoder

    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

    posted in Pythonista read more
  • NewbieCoder

    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')
    

    posted in Pythonista read more
  • NewbieCoder

    Its just the prerson that tought me

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!