omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Text box for user input using Scene

    Pythonista
    2
    2
    379
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • timjhinton
      timjhinton last edited by

      Hello there,
      I’m using the scene module for my project and I am trying to have a small screen pop up with a box for text input. With the UI script it is easy to add a editable text box and drop it on the screen. Can I do the same thing using scene? I went through the documentation hoping that a Labelnode could be set to be editable.
      Any suggestions on how to do this?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @timjhinton last edited by cvp

        @timjhinton you can add an ui.TextField as subview of the view associated to the scene by its
        scene.view attribute,

        class myscene(Scene):
        	def setup(self):
        		tf = ui.TextField()
        		tf.frame = (10,10,100,32)
        		self.view.add_subview(tf)	
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors