By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,125 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Advice for non programmer looking to learn Python

P: 13
my profession is completely unrelated to computer science,,
still for no proper reason i wanted to learn programming and chose python.i started out with apress python for absolute beginners(book),then bought o'reilly learning python, i wanted to know if it is possible for a non-professional to learn programming,,if yes, can anyone show me a direction to learn python so that i can fulfill my dream to become a programmer.

thank you
Oct 22 '11 #1
Share this Question
Share on Google+
14 Replies


bvdet
Expert Mod 2.5K+
P: 2,851
It sounds like you have made a good start. I learned Python from scratch (still learning!). I think the best way to learn is by doing, so decide what you want a Python script to do for you and go from there. Start simple. There are several good Python resources on the internet with sample code. Post back with any questions. Good luck!
Oct 22 '11 #2

P: 13
thank you for responding so quickly.
presently,, i have fairly good idea about core data types,functions,module and package imports and some
insight into OOP , i didnt yet cover advanced topics(at least
in my perspective!) like operator overloading,metaclasses, decorators etc.. do i have to have thorough knowledge in all of these topics to start learning GUI , and what is the best GUI tool to begin with?

..and next time i will come back with proper questions in python.
thank you once again.
Oct 22 '11 #3

P: 13
thank you dwblas
will look into those links
Oct 23 '11 #5

bvdet
Expert Mod 2.5K+
P: 2,851
You don't need to know the "advanced" topics to venture into GUI programming. There are several good GUI "toolkits" for Python. Most of my experience is with Tkinter. Do a web search and you will find several good resources.
Oct 23 '11 #6

P: 13
yes, thank you "bvdet".
i tried to understand a simple GUI code in Tkinter,,but frightened by
words like events and event loops.then i understood i have to understand something called event-driven programming.i found this nice
material on the same topic: http://eventdrivenpgm.sourceforge.ne...rogramming.pdf
i think its enough to understand the semantics of GUI programming, to get started.am i right?
Oct 24 '11 #7

bvdet
Expert Mod 2.5K+
P: 2,851
An event can be a number of things. A mouse click or key release are two comment events. The internet material you found contains helpful information.

An event object is transparently passed to a callback function of an event that was bound to a widget. A button command receives no event object. That was confusing to me at first.
Oct 24 '11 #8

P: 13
"bvdet" can you elaborate this: "An event object is transparently passed to a callback function of an event that was bound to a widget. A button command receives no event object. That was confusing to me at first. " sorry if iam boring.
i will study some more on this topic so that my posts could be more productive.
thank you "bvdet"
Oct 24 '11 #9

bvdet
Expert Mod 2.5K+
P: 2,851
Following is a simple example. Widget method bind is used to bind an event to a widget. Tkinter.Button is commonly configured with a command, but an event can be bound to it as well.
Expand|Select|Wrap|Line Numbers
  1. .... snip ....
  2. def handler(event):
  3.     return "some object or value"
  4.  
  5. btn = Tkinter.Button(parent, text=name, padx=5, pady=5,
  6.                      bd=4, bg='#ff0', fg="#00f",
  7.                      activebackground = "#00f",
  8.                      activeforeground = "#ff0",
  9.                      font=("Arial", 16, "bold"),
  10.                      relief='raised', command=None)
  11. btn.pack(side="left", fill=BOTH, expand=1)
  12.  
  13. btn.bind("<ButtonRelease-1>", handler)
  14. .... snip ....
Oct 24 '11 #10

P: 13
those Tkinter links are very useful for a beginner like me
thank you
Oct 27 '11 #12

Expert 100+
P: 391
If you're looking for little projects to practice on, try Project Euler
Oct 31 '11 #13

Expert 100+
P: 446
Go to www.lynda.com for online tutorial.
Some of the lessons are free but you will have to enrol at a modest price to complete the course.
Oct 31 '11 #14

P: 13
the online tutorial link is good.
can any one suggest how to get started with Django?
i may sound bit over-ambitious but i am just curious,
thank you for the responses.
Oct 31 '11 #15

Post your reply

Sign in to post your reply or Sign up for a free account.