The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. November 21, 2008, 05:09:19 PM

Login with username, password and session length


Pages: [1] 2
  Print  
Author Topic: Python resources  (Read 1789 times)
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 1141


View Profile
« on: April 19, 2007, 04:05:43 PM »

This is just a start I will add more as i get arround to it.

http://www.python.org/ this is the know all of python Smiley

In python it is very easy to wrap C/C++ libraries etc (easy compared to other languages Smiley )
As a result tons of good GUI libs all cross platform

http://www.wxpython.org/ python binding to wxwidgets (formerly wxwindows)

http://www.pygtk.org/ gtk binding, gtk will now run on windows also.
Advantage of gtk is ability to use glade to design gui, also i find it more "neat".

http://pyfltk.sourceforge.net
I mention this one just because it is very light wieght and fast
Fltk gui is only 750K, crossplatform ofcourse.
pyfltk binding is stable but not recomended for newbies, you have to download off cvs and compile urself.

http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
Pyrex lets you write code that mixes Python and C data types any way you want, and compiles it into a C extension for Python.
Makes building a C extension a snap Smiley
« Last Edit: April 21, 2007, 03:40:02 AM by nop_90 » Logged
Caligula
Rookie
**
Offline Offline

Posts: 39



View Profile
« Reply #1 on: May 04, 2007, 12:29:52 AM »

I started reading through some of the links you posted about Python... it says right on the front page of the python.org site that it can be learned in a few days? It can't be that easy... php sure cant be learned in a few days...

Logged
Bompa
Administrator
Expert
*****
Offline Offline

Posts: 208


View Profile WWW
« Reply #2 on: May 04, 2007, 03:57:11 AM »

I started reading through some of the links you posted about Python... it says right on the front page of the python.org site that it can be learned in a few days? It can't be that easy... php sure cant be learned in a few days...



Can be learned in a few days, yah right!  I bought a book once "Learn C+ in 24 Hours"  LOL

Probably a programming engineer can pick up the basics in a few days, but not me.

Otoh, with PHP, you can learn enough in a days to build a rudimentary spider that
can scrape SERPs and a bot that would post to web forms.  You can learn those
things with python also, but there are so many ppl using php nowadays that if you
come accross a hitch, almost anyone can help you out.  Try finding someone online
to answer your python questions, LOL.

Oh, in another thread you asked which is more capable.  I know nothing of python, but
still I would dare to say that they are of equal capabilities.


Bompa
Logged

perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #3 on: May 04, 2007, 08:42:27 AM »

Pretty funny... people completely confuse the notion of learning that "Cerveza" means beer and actually LEARNING another language. Of course - I can teach anyone the essentials of PHP (or any nuymber of languages for that matter) but to really be able to use or author in a language usually takes so much more.

/p
Logged

If I can't be Mr. Root then I don't want to play.
Caligula
Rookie
**
Offline Offline

Posts: 39



View Profile
« Reply #4 on: May 04, 2007, 04:45:48 PM »

Yeah I thought that sounded funny, thats why I said something.. I mean I learned CSS is 3 days, but that stuff is limited - you can only do so much, so there is really an "end point". With php there isn't one...but thats to its benefit, you can do more with it, the same I assume with Python. I know enough php to build a spider - mainly thanks to you guys - the link spamming is gonna take some time...hehe - but I keep hearing about Python. As you are all aware, and have even mentioned before, its a matter of which language fits your way of thinking type deal, and thats why I am curious. PHP is great, but I like to keep my eye open for something that will allow me to be able to build the same tools I can with php, but maybe make the syntax a little easier to write.

[rant]
Sometimes I will try a method in php that doesnt seem to work the way it should and that can get frustrating, and more than once I have copyied code from a php.net example only to find that their example was wrong! - literally returned an error in my browser as they had included an invaild statement in the syntax - do you know how hard it is to learn a language when your "textbook" has errors in it?
[/rant]


Its only a matter of time before I go to look something up and get an example like..


Code:
<?python

function TrainStation(){

if( $Which_Way )
{
  preg_match_all( '/To The(.+?)\?/', $result, $output, PREG_SET_ORDER );
  foreach( $output as $item )
  {
   echo "Please Fondle My Buttocks";
}

?>




Logged
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #5 on: May 04, 2007, 10:05:43 PM »

Buttinski here.

I have done a little work with python.  It's a cool, versatile, language.  So is PHP.

The very largest plus for python is the ability to make cross platform desktop applications.  You can code up a script and run it on windoze, nix, mac, whatever.  Even make a gui that works on them all too.  Can't get PHP to do that.  Yet?

D
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
Caligula
Rookie
**
Offline Offline

Posts: 39



View Profile
« Reply #6 on: May 04, 2007, 10:33:13 PM »

Buttinski here.

I have done a little work with python.  It's a cool, versatile, language.  So is PHP.

The very largest plus for python is the ability to make cross platform desktop applications.  You can code up a script and run it on windoze, nix, mac, whatever.  Even make a gui that works on them all too.  Can't get PHP to do that.  Yet?

D


THAT is the reason for my curiosity towards Python...

Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #7 on: May 05, 2007, 10:09:17 AM »

Even make a gui that works on them all too.  Can't get PHP to do that.  Yet?

Well... in my world you can because all GUIs are inside a browser... but your point is clear and correct. If you need to do such a thing then Python makes a much better choice.

/p
Logged

If I can't be Mr. Root then I don't want to play.
thedarkness
Global Moderator
Lifer
*****
Offline Offline

Posts: 580



View Profile
« Reply #8 on: May 06, 2007, 12:23:08 AM »

Even make a gui that works on them all too.  Can't get PHP to do that.  Yet?

Well... in my world you can because all GUIs are inside a browser... but your point is clear and correct. If you need to do such a thing then Python makes a much better choice.

/p

Ahem........ http:// gtk.php.net/  Don't make me...

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
thedarkness
Global Moderator
Lifer
*****
Offline Offline

Posts: 580



View Profile
« Reply #9 on: May 06, 2007, 12:52:58 AM »

Looks like fun too (in a weird, stick needles in your eyes kind of way);

http:// gtk.php.net/manual/en/tutorials.objectorientation.advanced.php

perk: they stole your private method syntax.... the plagiaristic bastards  Don't make me... Although perhaps that's just a way of specifying the default constructor for the class?

Might have to play with this one day when I'm feeling masochistic and have way too much time on my hands  ROFLMAO

Cheers,
td
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
perkiset
Olde World Hacker
Administrator
Lifer
*****
Online Online

Posts: 5142


:sniffle: Humor was so much easier before.


View Profile
« Reply #10 on: May 06, 2007, 11:47:49 AM »

Looks like fun too (in a weird, stick needles in your eyes kind of way);
Smiley


perk: they stole your private method syntax.... the plagiaristic bastards  Don't make me... Although perhaps that's just a way of specifying the default constructor for the class?
Actually I stole that syntax from PHP - thought it looked good for the hint of protection in JS even though it's meaningless. Thanks for the credit though...  Wink Oh wait! Yeah, right! I did invent it! And I am going to patented it! I've been robbed Robbed I tell you! Robbed!

Might have to play with this one day when I'm feeling masochistic and have way too much time on my hands  ROFLMAO
I agree, although the GTK even as good as it is still only "simplifies" the process of making GUIs on disparate OSs... individual idiosyncracies and shitties still abound I believe... so that's why I moved to an arena that is totally standardized and normalized on every OS and application, the browser!  ROFLMAO ROFLMAO ROFLMAO ROFLMAO ROFLMAO

/p
Logged

If I can't be Mr. Root then I don't want to play.
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 1141


View Profile
« Reply #11 on: May 06, 2007, 03:54:42 PM »

It all depends what u are doing. What ur budget is etc.
If you want crossplatform and standard and have tons of $$$$ to throw out the QT toolkit is the way to go.

For windoze and linux the GTK toolkit works the same pretty much.

Best binding is pygtk, not really because python is best language, but because oldest Smiley.

If you make GUI coupled closely with data kiwi is build upon pygtk
http://www.async.com.br/projects/kiwi
It binds the widget to the data. (you have like a MVC).

It really depends what u are doing.
Logged
dink
Expert
****
Offline Offline

Posts: 319


View Profile
« Reply #12 on: May 08, 2007, 10:11:41 PM »

Even make a gui that works on them all too.  Can't get PHP to do that.  Yet?

Found this reference on another forum:
http://winbinder.org/

D
Logged

[quote Nutballs]
the universe has a giant fist, and its got enough whoop ass for everyone.
[/quote]
cd1
Rookie
**
Offline Offline

Posts: 10


View Profile
« Reply #13 on: September 05, 2008, 11:34:45 PM »

For quick GUI Application development, you can't beat pygtk w/ glade.  With glade you get to wysiwyg design your gui, then apply hooks to python functions for all your widgets.  The whole GUI is saved in an XML file, and can be loaded with a couple of lines of python.
Logged
nop_90
Global Moderator
Lifer
*****
Offline Offline

Posts: 1141


View Profile
« Reply #14 on: September 08, 2008, 07:14:52 PM »

@cd1
you might want to check out http://www.async.com.br/projects/kiwi/index.html
it is built upon pygtk, except the controls are data aware.
Logged
Pages: [1] 2
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!