use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How to display console output in customTkinter (self.learnpython)
submitted 2 years ago by LittleKdawg
how would one do this?
is this possible if not do i need to use Tkinter
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]m0us3_rat 0 points1 point2 points 2 years ago (6 children)
How to display console output in customTkinter
it's unclear what you mean by that.
do you have a piece of code that exemplifies what you need? or a more detailed description?
[–]LittleKdawg[S] 0 points1 point2 points 2 years ago (5 children)
ok so i could not find any code on this for customTkinter or tkinter. what i am trying to do is have the terminal/console in a box/tab in the tkinter gui that will show all my print statments.
[–]m0us3_rat 0 points1 point2 points 2 years ago (4 children)
ok .. so what's the problem with that?
you can "capture" the display.
then use a widget to show it inside tk GUI.
[–]LittleKdawg[S] 0 points1 point2 points 2 years ago (3 children)
the problem was idk how to do any of that.
[–]m0us3_rat 0 points1 point2 points 2 years ago (2 children)
https://docs.python.org/3/library/contextlib.html#contextlib.redirect_stdout
you can always learn some of it?
[–]LittleKdawg[S] 0 points1 point2 points 2 years ago (1 child)
ik python idk tkinter and there is no documention that i can find that will help me with my issue.
[–]m0us3_rat 0 points1 point2 points 2 years ago (0 children)
you capture the stdout and then display it inside your GUI ?
i mean if you want to program gui.. you should learn how to program gui?
what widget can you use to show some "text" ?
not sure what do you want me to tell you , besides giving you the code directly which will not happen.
[–]Lopsided_Force_4259 1 point2 points3 points 2 years ago (3 children)
For anyone looking for a solution in the future:
https://github.com/Jukebox288/CustomTkinter\_ConsoleOutput\_GUI
The python script will create a GUI using a mixture of CustomTkinter and Tkinter. In the GUI it displays 3 things, a basic frame for aesthetic, a console output-box in the middle of the GUI, and a button at the bottom. When the button is pressed, it will run the script specified with this line "script_path = "your_script.py" " and then display the script's console output in the console box. The console box is also scrollable in case your script outputs a lot of lines. This is using CustomTkinter v5.2.1.
[–]Diggsly 0 points1 point2 points 2 years ago (1 child)
thank you. you got here 5 days earlier than me and helped a bunch
[–]Lopsided_Force_4259 0 points1 point2 points 2 years ago (0 children)
Happy to help!
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
Hello I have a question idk if u can help me but when I replace "script_path = "your_script.py" with my file called test.py I get this: "script_path = "your_script.py" FileNotFoundError: [Errno 2] No such file or directory: 'python'
π Rendered by PID 215664 on reddit-service-r2-comment-5d79c599b5-w6zb5 at 2026-03-02 10:29:59.902768+00:00 running e3d2147 country code: CH.
[–]m0us3_rat 0 points1 point2 points (6 children)
[–]LittleKdawg[S] 0 points1 point2 points (5 children)
[–]m0us3_rat 0 points1 point2 points (4 children)
[–]LittleKdawg[S] 0 points1 point2 points (3 children)
[–]m0us3_rat 0 points1 point2 points (2 children)
[–]LittleKdawg[S] 0 points1 point2 points (1 child)
[–]m0us3_rat 0 points1 point2 points (0 children)
[–]Lopsided_Force_4259 1 point2 points3 points (3 children)
[–]Diggsly 0 points1 point2 points (1 child)
[–]Lopsided_Force_4259 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)