Code Monkey home page Code Monkey logo

Comments (6)

KenT2 avatar KenT2 commented on May 24, 2024

#48 does not solve this well where the TextInput is in a Generic Dialog and an Enter callback is not required on every field as it is the Dialog. It can be fudged by adding a dummy on_enter_listener to every TextInput field :-(

from remi.

dddomodossola avatar dddomodossola commented on May 24, 2024

Hi Ken, I think it could not be managed differently in the GenericDialog. I though that, on the textInputs that requires, you can set the on_enter_listener in order to accept the dialog.

from remi.

dddomodossola avatar dddomodossola commented on May 24, 2024

Now the InputDialog accepts the ENTER key as confirmation action.

from remi.

KenT2 avatar KenT2 commented on May 24, 2024

OK for InputDialog

In the GenericDialog situation there might be a number of single line TextInput fields the content of which are dependent on one another, so there is a validation function attached to the OK button which checks the dependencies. Pressing enter on each individual field should by default do nothing and, if it is single line, the return should no be placed in the field as the text then disappears. The optional on_enter listener could be used to do a validity check on an individual field but should not close the dialog

from remi.

fohnad avatar fohnad commented on May 24, 2024

Hello I am dealing with this problem now. Can TextInput be a single line? I use it like this:
txt = gui.TextInput(True, width='80%', height='20px')
but this way if I press Enter then it skips to another line and it is not single line anymore.

I would like to be able to have just one line input and after I change more of different textinputs than press some confirmation button.

from remi.

dddomodossola avatar dddomodossola commented on May 24, 2024

Late, but it's done.

from remi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.