Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Friday, October 15, 2010

Fe Net ??!!

Bsfty w7ed el router bta3o mzwlo 3la tool beb2a fi wireless bs mafesh net .... w bsfty bardo btzwel fi el kolya bsbab el net el wahmy ely te3mel connect bs mosh yb2a fi net ... 2olt badal m3od aft7 el terminal w akteb ping w bta3 a3mel 7aga zarefa keda

el mohem ana 3mlt python script 7ker keda lma te3mel run y2om 2ylk fi el notifications area bta3t Ubuntu lw fi net aw mafesh

ana 3mlt launcher bardo fo2 fi el panel ynady el python script 3la tool`

You can find the script on my Ubuntu one space here
tell me if there is something wrong with it (there has to be as I cooked it :D)

dah example





try:
    import pynotify
    if pynotify.init("My Application Name"):
        n = pynotify.Notification("Title", "message")
        n.show()
    else:
        print "there was a problem initializing the pynotify module"
except:
    print "you don't seem to have pynotify installed"


ady el shots

keda fi net




lw b2a fi wireless bs mafesh net



lw b2a 7drtk zaky w b test w aslan mosh 3amel connect l2y network