omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. NewbieCoder
    3. Posts

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 12
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by NewbieCoder

    • RE: I need help(again)

      @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
      NewbieCoder
      NewbieCoder
    • 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)
      
      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: More than 1 button won’t show up

      @cvp What do you mean

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: More than 1 button won’t show up

      Holy БЛЯДЬ i see now.

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

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: Can you assign a button input to a variable

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

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: Can you assign a button input to a variable

      Why you bully me)))

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: More than 1 button won’t show up

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

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • 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

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • 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')
      
      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • RE: Can you assign a button input to a variable

      Its just the prerson that tought me

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • Can you assign a button input to a variable

      Im having trouble trying to figure out how to assign a button press to a variable and at first i tried this code

      def button_tapped(sender):
      '@type sender: ui.Button'

      	a = sender.title
      

      But it obviously did not work
      Please help

      posted in Pythonista
      NewbieCoder
      NewbieCoder
    • Ui Creator Issue

      I am Russian and apologize if my England is bad.

      I have problems in which the Pythonista UI feature will not let me name the buttons i am create or I just am might be doing it completely wrong.

      Also could somebody transalate what the word “Fun” means?

      posted in Pythonista
      NewbieCoder
      NewbieCoder