Comments (6)
#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.
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.
Now the InputDialog accepts the ENTER key as confirmation action.
from remi.
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.
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.
Late, but it's done.
from remi.
Related Issues (20)
- ConnectionAbortedError: Windows HOT 2
- GUI on Remy for mobile devices HOT 15
- Excuse me,Callback function of button. How should I write?The body is successful.But button,I don't konw how to do this. HOT 10
- Hello, I have a program made with remi, and there is a problem with the page layout disorder between different devices. I look forward to your reply! HOT 11
- Need a simple SAAS APP example with Remi HOT 18
- Can REMI be output to an image file? (jpg, png, etc) HOT 3
- Will REMI run on embedded devices with CircuitPython or MicroPython? HOT 1
- How to use the animation css property in remi HOT 2
- Problem with Cancel button of GenericDialog? HOT 4
- Video stream not seen remotely HOT 4
- Label and SpinBox widgets do not align HOT 2
- [Question] How to set a textinput blur when user pressed Esc key HOT 2
- got an unexpected keyword argument 'websocket_port HOT 1
- Blank window on standalone_app.py HOT 2
- Labels do not display the correct number of whitespace HOT 1
- [QUESTION] any example of long-polling implementation in remi? HOT 1
- Get selected text from TextInput HOT 6
- automatic scroll down in text widget (write only) HOT 9
- highlight of table cells in front end. HOT 1
- GenericDialog confirm by Enter key pressing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remi.