LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Success Stories (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/)
-   -   python rules (http://www.linuxquestions.org/questions/linuxquestions-org-member-success-stories-23/python-rules-60369/)

bulliver 05-17-2003 08:37 PM

python rules
 
Well, my success story doesn't so much have to do with Linux itself, but with programming. I have always wanted to do some programming but it was so obtuse. I would read the source-code and just think whaaaaaaaaaa? I thought it would always be beyond my grasp.

Finally I sat down with the Advanced Bash Scripting Guide (from the tldp) and started writing scripts. I ended up writing a script that converts mp3s to oggs (dir2ogg), learning more and more along the way. The script was all right, but it was limited in the things it could do. I needed a more powerful language.

Using Eric S. Raymond's 'How to be a Hacker' as my inspiration, I tried some stuff with python. The docs are good, the language is clean, and it is much faster than shell scripting.

I decided to rewrite dir2ogg in python. It took all of an hour, and it worked correct on the third attempt. I also got it to preserve the ID3 tags while converting (something the shell version could not do). Talk about breakthrough, I just reached that level when previously baffling things start to make sense.

I am now getting the crazy, foolhardy urge to prototype a cross-platform p2p filesharing app in python, using a gui toolkit (not sure which one yet. Why p2p? Because in my opinion that is the one missing app that Linux needs.

It may take years to get this project in any sort of useable form, but at least now I have the confidence to start it.

Anyway, that's my story and I'm sticking to it.

Robert0380 05-18-2003 09:56 PM

i use limewire, that's p2p written in java (cross platform).

bulliver 05-18-2003 10:40 PM

I know about all of them....and don't like any of them....I don't think they are very good at all. What I want to do is something like imesh without all the spyware....

rshaw 05-18-2003 10:56 PM

you might try pyQT, same exact code will run on linux or win (and soon mac). if you have pyQT installed try:

import sys
from qt import *

app=QApplication(sys.argv)
button=QPushButton("python rocks",None)
app.setMainWidget(button)
button.show()
app.exec_loop()

ok, this doesn't do much at first glance, but it inherits the native windowing systems controls(close, minimize,restore,and menu) plus the button automagically repaints itself after its been obscured. thats alot of horsepower for 7 lines of code.

bulliver 05-19-2003 03:25 AM

That's actually what I was thinking, I do prefer qt to gtk...the only prob is that the end user must have it installed as well.

Another option I was considering was using anygui (www.anygui.org) which apparently can use any python gui toolkit installed (or at least all the major ones...)

Proud 05-19-2003 01:54 PM

wxPython, uses wxWindows. I've had a lot of fun cloning apps in Python for windows to teach myself the language. :)

MykilX 06-16-2003 02:58 AM

There is a great p2p for linux called pysoulseek. (THe windows version is soulseek) It's coded in python using wxwindows. Best p2p out there imho. Check it out.
home page here http://www.sensi.org/~ak/pyslsk/

bulliver 06-16-2003 02:10 PM

Quote:

There is a great p2p for linux called pysoulseek
I'm using it now.....highly recommended


All times are GMT -5. The time now is 04:35 PM.