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.
Hello people,
I've been learning Python as my first language but can't find two things in any of the tutorials:
1. How can you create GUI's for your programs? I want to be able to make programs which appear in an X window, for instance I'd like to make a little slide show program or something.
2. Is there an equivalent of a GOTO command like in DOS batch files? It would make life much easier in some situations, the only semi-equivalent seems to be the def function
Thanks a great deal, links to tutorials about the above things would be much appreciated.
Aha! That is where the EVIL and WRONG tutorial is. Thanks for the link so I can email the guy and tell him how EVIL and WRONG he is for using input() in a tutorial for newbies.
Originally posted by BongFish Okay, GTK. Pardon my ignorance but GTK uses things called widgets doesn't it??
Yes .... and? Every toolkit uses widgets of some sort. That's kind of what defines them as toolkits and not just drawing libs.
Quote:
Why are goto's considered bad programing?
If you really want to know, read Dijkstra's article. But the short and sweet version is this: it makes programs more complex than they need to be and it offers no advantages.
LOL, I had no idea that all 'toolkits' used widgets or what they were.
I've downloaded pygtk, had a play around with it and looked through the example scripts.
Strike:- I guess I won't be using that guide then, it doesn't look very indepth anyway. I'm using the Python Tutorial for non-programmers from the python website at the moment, it's good so far.
Some good tutorials for teaching the basics are at the bottom of the page under the ones "For Younger" somethings, the Livewires tutorials. Sure, you may not be a kid, but they work.
I'm 15 and I only feel patronised because I've done them all before and am now programming my own stuff (and helping write new sheets, my name is on Snake) using the libraries supplied.
Strike:- I guess I won't be using that guide then, it doesn't look very indepth anyway. I'm using the Python Tutorial for non-programmers from the python website at the moment, it's good so far. [/B]
Bong Fish there is more than one tutorial there, which one are you using ??
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.