way to combine TextLineEntry with TextBox ? #277
-
First of all, thanks a lot already for all work done. I'm not very experienced with coding, so I might ask the obvious: I'm looking for an interactive textmodule which combines the features of textlineentry with textboxlayout. I'm not able to get the changed text ( via delete, insert, .. ) from the textbox ? Is there any function which I might have missed ? Thanks a lot for the info |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Dear, found the text embedded in a TextLineChunkFTFont object, but I cannot access the text ? How do I get access to this, I cannot find a method ? Many thanks for the help / explanation |
Beta Was this translation helpful? Give feedback.
-
Hello, At the minute there is no 'EditableTextBox' UIElement (I'm imagining something like the main window pane of windows notepad here). It is on the to do list for the future. If you are looking for something like a text console (think a CMD/Powershell/command line) then there is an example of that in the examples project here: https://github.com/MyreMylar/pygame_gui_examples look at If you want to print all the lines of text you enter into the console window you could do something like:
and passing in the console window. |
Beta Was this translation helpful? Give feedback.
Hello,
At the minute there is no 'EditableTextBox' UIElement (I'm imagining something like the main window pane of windows notepad here). It is on the to do list for the future.
If you are looking for something like a text console (think a CMD/Powershell/command line) then there is an example of that in the examples project here:
https://github.com/MyreMylar/pygame_gui_examples
look at
text_console.py
If you want to print all the lines of text you enter into the console window you could do something like: