Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 17th, 2003, 10:50 PM
Gerardoj's Avatar
Gerardoj Gerardoj is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Somewhere over the Rainbow
Posts: 128 Gerardoj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 54 m 28 sec
Reputation Power: 10
Programming in Python?

Hi. I'm interested to learn Python, but I would like to know what kind of projects I can do, I kno that Python has a very simple and consistent syntax and a large standard library, but how can I package and compile Python code ? how can I make *.exe with Python code? , it is possible to make windows or forms, buttons etc.?

Reply With Quote
  #2  
Old September 17th, 2003, 10:57 PM
SolarBear's Avatar
SolarBear SolarBear is offline
onCsdfeu
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Canada
Posts: 100 SolarBear User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 16 m 21 sec
Reputation Power: 10
Send a message via MSN to SolarBear
As for compiling, you can achieve that by calling your Python interpreter with the '-O' option : it will optimize your script and create a "compiled" script, kinda like Java bytecode I guess.

For executable files, check out py2exe (Google your way to it). I've never tried it myself, but it seems to do a pretty good job.

As for UIs, there are 2 libraries available : Tkinter and wxPython. Tkinter is included with your Python installation while wxPython is a separate install. Some people will argue towards one or the other, but it's more a question of personal taste as to which one's best.

Reply With Quote
  #3  
Old September 18th, 2003, 12:22 AM
Strike Strike is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 383 Strike User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 41 m 27 sec
Reputation Power: 12
Send a message via ICQ to Strike Send a message via AIM to Strike Send a message via Yahoo to Strike
There are a LOT more than 2 libraries available. In fact, the best library (from a developer standpoint) hasn't even been mentioned - Gtk+. Combine Python with libglade/glade and you've got some really fast GUI app development.

Making .exe files out of python is pretty impractical, really. When you get right down to it, the person will have to have a python interpreter in order to run it. If that means you bundle the interpreter inside the executable (which is what py2exe does), then so be it. But if you are trying to "compile" python scripts so that they are obfuscated and so that people can't "steal" your code, then give up right now because decompiling them is trivial.

Reply With Quote
  #4  
Old September 18th, 2003, 08:02 AM
netytan's Avatar
netytan netytan is offline
Hello World :)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2003
Location: Hull, UK
Posts: 2,537 netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level)netytan User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 18 h 17 m 47 sec
Reputation Power: 68
Send a message via ICQ to netytan Send a message via AIM to netytan Send a message via MSN to netytan Send a message via Yahoo to netytan
Python is a great lang'; it's been used to do almost everything - from commersial GUI applications to Zope, a full fledged application server and other Web Scripting.. if you wana know where it's being used and by who check out the quotes page:

http://www.python.org/Quotes.html

There are loads of GUI toolkits, I've headed really good things about PyQT and it's designer, which lets you make GUI's in a similar way to VB.. I havn't really done too much GUI programming though

For the web Python rocks bigtime though.. there are allot of good toolskits out there that you can use to make ur life easier, Spyce is a very good example! And there are modules for nearly every DB you'd imagin..

http://www.python-hosting.com

And lastly, your app isn't running fast enough? You could us Psyco (a JIT compiler) to speed up your program or even write the slow parts in C/C++

Py2EXE may not be the best way to secure your code but it makes distributing your programs on Windows pretty easy , there are other programs which do the same thing but I really havn't heard that much about them. PyEXE seems to be the fav' for this

Conclision Python rocks for everything you may want to use it for.. welcome to the world of Python programming G

Have fun,
Mark

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Programming in Python?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap