|
nop_90
|
 |
« 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  In python it is very easy to wrap C/C++ libraries etc (easy compared to other languages  ) 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.netI 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 
|
|
|
|
« Last Edit: April 21, 2007, 03:40:02 AM by nop_90 »
|
Logged
|
|
|
|
|
Caligula
|
 |
« 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
|
 |
« 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
Posts: 5142
:sniffle: Humor was so much easier before.
|
 |
« 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
|
 |
« 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.. <?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
|
 |
« 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
|
 |
« 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
Posts: 5142
:sniffle: Humor was so much easier before.
|
 |
« 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
|
 |
« 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/  Cheers, td
|
|
|
|
|
Logged
|
"I want to be the guy my dog thinks I am." - Unknown
|
|
|
|
thedarkness
|
 |
« 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  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  Cheers, td
|
|
|
|
|
Logged
|
"I want to be the guy my dog thinks I am." - Unknown
|
|
|
perkiset
Olde World Hacker
Administrator
Lifer
   
Online
Posts: 5142
:sniffle: Humor was so much easier before.
|
 |
« 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);
 perk: they stole your private method syntax.... the plagiaristic bastards  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...  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  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!  /p
|
|
|
|
|
Logged
|
If I can't be Mr. Root then I don't want to play.
|
|
|
|
nop_90
|
 |
« 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  . If you make GUI coupled closely with data kiwi is build upon pygtk http://www.async.com.br/projects/kiwiIt binds the widget to the data. (you have like a MVC). It really depends what u are doing.
|
|
|
|
|
Logged
|
|
|
|
|
dink
|
 |
« 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
|
 |
« 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
|
|
|
|
|
|
|