Thread: Python resources
nop_90

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

  Applause

In

python

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

http://www.wx

python

 .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 Applause

Caligula

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

learn

 ed in a few days? It can't be that easy...

php

  sure cant be

learn

 ed in a few days...

Bompa

quote author=Caligula link=topic=21.msg906#msg906 date=1178263792

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

learn

 ed in a few days? It can't be that easy...

php

  sure cant be

learn

 ed in a few days...




Can be

learn

 ed 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

perkiset

Pretty funny... people completely confuse the notion of

learn

 ing  that "Cerveza" means beer and actually

LEARN

 ING  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

Caligula

Yeah I thought that sounded funny, thats why I said something.. I mean I

learn

 ed 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..



<?

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";
}

?>





dink

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

Caligula

quote author=dink link=topic=21.msg953#msg953 date=1178341543

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

 ...

perkiset

quote author=dink link=topic=21.msg953#msg953 date=1178341543

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

thedarkness

quote author=perkiset link=topic=21.msg966#msg966 date=1178384957

quote author=dink link=topic=21.msg953#msg953 date=1178341543

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

 /  Applause

Cheers,
td

thedarkness

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

http:// gtk.

php

 

.net

 /manual/en/

tutor

 ials.objectorientation.advanced.

php

 

perk: they stole your private method syntax.... the plagiaristic bastards  Applause 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  Applause

Cheers,
td

perkiset

quote author=thedarkness link=topic=21.msg986#msg986 date=1178437978

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

Applause


quote author=thedarkness link=topic=21.msg986#msg986 date=1178437978

perk: they stole your private method syntax.... the plagiaristic bastards  Applause 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...  Applause Oh wait! Yeah, right! I did invent it! And I <>am going to patented it! I've been robbed Robbed I tell you! Robbed!

quote author=thedarkness link=topic=21.msg986#msg986 date=1178437978

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

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!  Applause Applause Applause Applause Applause

/p

nop_90

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 Applause.

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.

dink

quote author=dink link=topic=21.msg953#msg953 date=1178341543

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


Perkiset's Place Home   Politics @ Perkiset's