Python showing command output in a frame/label
Hi,
How to redirect python command output to a frame/label in python ? Code:
import os Regards, Barun |
You'll have to use some sort of GUI toolkit. Which one you use will dictate how to display text in a label or other widget.
|
GUI toolkit will just ease the process of writing your code/design.
But my question is rather very simple and irrelevant of any toolkit you use. Lets say one of my python function is executing some script as given above, and I have to show this output/error(if any) on a python GUI frame instead of showing on a terminal. Can you paste me the code to redirect this output to the frame ? N.B. This could only be answered by someone who has done some scripting in python. So fine if you do not know this. |
Quote:
Quote:
https://docs.python.org/3.0/library/tkinter.html https://docs.python.org/3/library/tk.html http://www.tkdocs.com/tutorial/index.html And here's a very simple code snippet to get you started: Code:
#!/usr/bin/env python3 HMW |
Quote:
Here's one for PySide: Code:
#!/usr/bin/env python |
All times are GMT -5. The time now is 12:39 AM. |