225 Posted Topics

Member Avatar for gsingh2011

You need a diferent aproach because the login page it's on php with a javascript login.

Member Avatar for Beat_Slayer
0
251
Member Avatar for ChargrO
Member Avatar for colorpie
0
141
Member Avatar for foren

I think this should do it. [CODE]output.write('%s, %s\n' % (evidence_array[y], found[y])[/CODE]

Member Avatar for foren
0
241
Member Avatar for cableguy31

If I understood. [CODE]extensions = ['.txt', '.jpg', '.zip'] f_name, f_extension = os.path.splitext(filename) for extension in extensions: if f_extension == extension: do_something()[/CODE]

Member Avatar for TrustyTony
0
151
Member Avatar for phalaris_trip
Member Avatar for Jeramy

Your code will only run on linux. It looks more like a bash script then a python code. I just don't get if they are multiple files to copy and if it is to copy every day or id it only 15 of all the backups that there exist.

Member Avatar for Jeramy
0
110
Member Avatar for lewashby

One of the problems is here: [CODE]b1 = Button(app, text = "Correct!", width = 10, command = play_correct_sound) b1.pack(side = "left", padx = 10, pady = 10) b2 = Button(app, text = "Wrong!", width = 10, command = play_correct_sound) b2.pack(side = "right", padx = 10, pady = 10) [/CODE] where …

Member Avatar for SgtMe
0
354
Member Avatar for capson

It works perfect here. [CODE]VList=[0,0,1,0,1,1,0,0] if VList.count(1) < 5: print('Yes') else: print('No') My output: Yes[/CODE]

Member Avatar for capson
0
96
Member Avatar for Hawkpath

I might be wrong, but I believe with may be talking about [URL="http://docs.python.org/library/collections.html"]this[/URL]. If it is, you are a litle bit confused, since point is not a data structure, the namedtuple is the data structure you are searching for. congrats

Member Avatar for Beat_Slayer
0
125
Member Avatar for chavanak
Member Avatar for Beat_Slayer
0
1K
Member Avatar for prashanth s j

Something like: [CODE]f_in = open('input.txt', 'r') f_out = open('output.txt', 'w') for line in f_in: if line.find('DTP') == 0: f_out.write(line)[/CODE] or [CODE]f_in = open('input.txt', 'r') f_out = open('output.txt', 'w') for line in f_in: line.replace('DTP', 'NEW_WORD') f_out.write(line)[/CODE] Sorry for the lazyness, but I'm not at home.

Member Avatar for Beat_Slayer
0
1K
Member Avatar for gangster88

The size of the balls should be: [CODE](size of the window - ((number of balls + 1) * spacing)) / number of balls [/CODE]

Member Avatar for Beat_Slayer
0
2K
Member Avatar for Priyesh_17

I think that at least some code treeish style thingy would give some idea about your achievement. For some generic information, i believe you have plenty of scripts under the search. :)

Member Avatar for woooee
0
158
Member Avatar for WildBamaBoy

[URL="http://code.google.com/p/py-unrar2/source/browse/trunk/test_UnRAR2.py"]test_UnRAR2.py[/URL] If you take a look at this, it will get easier. I can tested but i think something likethis maybe. :) [CODE]for rarinfo in archive.infoiter(): if rarinfo.filename == "*.txt": # your code[/CODE]

Member Avatar for Beat_Slayer
0
264
Member Avatar for Tahir007

I liked it, I've tried some other assembly modules some time ago, and I just found them not so well going. For the architecture I'm with Tony, about the ARM also, I've been programming for symbian in the last weeks, and I would love it also to have some mobile …

Member Avatar for Beat_Slayer
1
140
Member Avatar for aframe

If you replace the read from the url with the html code you gave, it works just fine. Could it be something related to the talking with the server? We can test it. [CODE] matchstr = urlopen('http://192.168.0.1/stlui/user/allowance_request.html%20target=%22allowance%22').read()[/CODE] [CODE] matchstr = ''' <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta …

Member Avatar for Tech B
0
627
Member Avatar for vulcano224

I don't get your question and, what you really want to do. If it is what I think you can just check if the name of the current customer is the name of the winner and display the message. But fot it to be logic, you ahould be saving all …

Member Avatar for griswolf
0
107
Member Avatar for elvis1

[CODE] f_input = open('input.txt', 'r') f_output = open('output.txt', 'w') for currentline in f_input: newline = currentline.replace(' ', '') f_output.write(newline) f_input.close() f_output.close()[/CODE]

Member Avatar for elvis1
0
332
Member Avatar for MrAlshahawy

[URL="http://pys60.garage.maemo.org/doc/s60/"]Symbian module description [/URL] You can check there and come with some code questions. ;) I also program on that platform. Cheers! ;) Again... lol

Member Avatar for MrAlshahawy
0
206
Member Avatar for ppp88

You need the symbian python modules appuifw and e32 that are in the Python for Symbian SDK. You can only run them on a emulator on your pc, or on your mobile device.

Member Avatar for TrustyTony
0
77
Member Avatar for kurtiskain

I would read the file to a list, find the list item wanted, delete it and write the list to the file. [CODE]f = open(addressbook, 'r') file_records = f.readlines() f.close() f = open(addressbook, 'w') for item in file_records: if item != '%s %s \n' % (name, phone): f.write(item)[/CODE] Something like …

Member Avatar for griswolf
0
139
Member Avatar for daanh
Member Avatar for Gribouillis
0
134
Member Avatar for Syphilis

How about leaving the reserved name 'var' and use other name for the variable? I'm I missing something here?

Member Avatar for Syphilis
0
141
Member Avatar for MrAlshahawy

[URL="http://pys60.garage.maemo.org/doc/s60/"]Symbian module description[/URL] You can check there and come with some code questions. :) I also program on that platform. Cheers! :)

Member Avatar for Beat_Slayer
0
94
Member Avatar for MrAlshahawy

The End.