Skip to content

way to combine TextLineEntry with TextBox ? #277

Answered by MyreMylar
Minedigger76 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

def print_all_logged_lines(console):
    for line in console.logged_commands_above:
        print(line)
    if console.current_logged_command is not None:
        print(console.current_l…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Minedigger76
Comment options

Answer selected by Minedigger76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants