ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303
Original Poster
Rep:
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.
GUI toolkit will just ease the process of writing your code/design.
We must live on different planets, because I find writing GUI wrappers a pain in the b*tt!
Quote:
Originally Posted by barunparichha
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 ?
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.
No, you do need to choose a GUI toolkit. You need use that toolkit to create the window that will display your output. If the toolkit you want is the one that IDLE uses, then HMW already posted a snippet for that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.