15,175 Topics

Member Avatar for
Member Avatar for sreelatha

Hi, I have a requirement that i have two files, one is input file and another is log file(both will contain the same data mostly). I need to compare these two files and if any difference found then those lines should be write to another file(3rd file). I done googling, …

Member Avatar for sreelatha
0
3K
Member Avatar for preyan

I have pygame v 1.8.0 installed but it is without the font and video module support how do i have to enable it or from where do i have to get it

Member Avatar for preyan
0
81
Member Avatar for tondeuse34

Hey guys, recently i started with socket programming in python and still doing it. And i decided to do a project, its a text based GUI with different options that are related to Networks, but ive had trouble with it looping back to the menu which the input is represented …

Member Avatar for jrcagle
0
118
Member Avatar for ivy47469

I am writing a Crap Game. The first part turn out fine but I have problem with this requirement [I][U]"Your program must keep track of and report the number of games won by the user and the number of games won by the computer ("house"). The score should be 0-0 …

Member Avatar for jrcagle
0
98
Member Avatar for budstar

Sorry I just realise that made not sense. I have created a program in python similar to battleships. I have created the class section which were working when I include the direction section in the main and not as a seperate method, However when I move the method into a …

Member Avatar for jrcagle
0
138
Member Avatar for dangermini

Hi, i am currently trying to learn how to program in python and i have been doing ok until now! I am confused about classes objects and methods, i understand most of how they work. In a question task I am asked to create some code for a die (singular …

Member Avatar for dangermini
0
80
Member Avatar for Kabooom

Hey all, had another question that came up in my first Python program. The program is pretty much just a GUI for an application launcher. My current version has rollover buttons and successfully launches the applications, but is bloated and needs some revision so I'll post the first version with …

Member Avatar for Kabooom
0
295
Member Avatar for biggz

i need to build a recursive function which calculates the average of specific numbers entered ... so its fine till now but ... it says the number of entries is determined by the user's interest .. so i got some ideas i kinda stopped here i made a function which …

Member Avatar for bumsfeld
0
98
Member Avatar for heshan

Hi, I am having a string like below. What I need to do is to process the string in such a way that I could get the output in a format like below.The problem I am facing here is that some elements have commas(,) within itself , so it is …

Member Avatar for bumsfeld
0
139
Member Avatar for lllllIllIlllI

HI I was having a look into classes and i noticed i saw a lot of things like [code] class fruitcake(object): pass [/code] my question is what is the point of the "object" being in the class arguments as it is a Built In Function and i couldn't work out …

Member Avatar for bvdet
0
102
Member Avatar for supra87

Hey guys, I recently started an online Python course as I had some interest in it, this is the second assignment I have received (first one was a purely text based Python solver), and I have become really stuck as I haven't found much on GUI. Basically its about class …

Member Avatar for left_shoe
0
351
Member Avatar for lllllIllIlllI

Hi I have the source of a webpage that tells the weather and i want to extract the data and my only hurdle left to jump is to remove all the formatting HTML marks inside and including the <> bracket. I have the web page source stored as a string …

Member Avatar for bumsfeld
0
102
Member Avatar for uili

Hello , Down here we have my code and the error in the compilation, and i dont know how to resolve this can anyone help me. Just a introduction: This python script is used to save datas from a form in sql_data base. # Available parameters: # fields = HTTP …

0
39
Member Avatar for ymf

Hi all, I tried to write in a fibonacci sequence using python: [ICODE] unum = int(raw_input('Enter Limit Number to run Fibonacci sequence: ')) numlist = [1,1] for i in range(unum): fib2 = numlist[i+1] + numlist[i] numlist.append(fib2) print "Here's Fibonacci!" for w in numlist: print w, [/ICODE] This works fine. But …

Member Avatar for ymf
0
112
Member Avatar for Kabooom

Just starting Python and I have a question about how to run it just by double-clicking. With simple things like [ICODE]print "Hello World"[/ICODE] the wait for user input clause can be added and it will run by double clicking and give the desired output, but when I try it with …

Member Avatar for Kabooom
0
3K
Member Avatar for tondeuse34

Hey guys again, but i got another question. With this code here: [CODE]if choice == 'help' or '/help': print "Test"[/CODE] what if you entered anything else besides '/help' or 'help' and you have defined other things in the code you want to go to from input? any ideas/suggestions, Thanks

Member Avatar for jrcagle
0
119
Member Avatar for sanoski

This might be a dumb question. I don't know. I'm new to all this. How do you find icons for your programs? All GUI applications have cool icons that represent various things. For instance, to save is often represented as a disk, etc. You know, the small little picture references …

Member Avatar for bumsfeld
0
90
Member Avatar for Praymus

I would like to create a grid with Boa, but I dont know where to set the number of rows and columns.

Member Avatar for bumsfeld
0
225
Member Avatar for camoj11

I use this software called "LSmaker" but it has some glitches but I don't know python and that is what it is programmed in. The quirks that I found are; 1. When you export the animated file the same and another file in the folder lsmaker corrupts the file. 2. …

Member Avatar for tondeuse34
0
100
Member Avatar for tondeuse34

Hi guys, i'm new to sockets and find it pretty fun. But i got a question, in my code here: [CODE]import sys, socket import socket, sys dest = ('<broadcast>', 51423) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1) s.sendto("Hi", dest) print "Looking for replies; press Ctrl-C to …

Member Avatar for theOneCalledJef
0
78
Member Avatar for ymf

Hi, I have a cgi script in python that outputs a html table, but i also need to count the number of rows in that specific table. Any ideas on how i can proceed? Thanks in advance, ymf

Member Avatar for ymf
0
87
Member Avatar for muney13

ok, so when i create cube (pyopengl) and apply texture on it, some of the faces are transparent...how to make all faces to be solid? im new in python, and this really frustrates me, can someone help?

Member Avatar for muney13
0
76
Member Avatar for Miyuki

I want to make Python code to make a new directory then put you into it, same as typing md and cd yourself, but only one command typed. I can use os.chdir() but after Python program exits I return to original directory, not going to new one. How do I …

Member Avatar for jrcagle
0
194
Member Avatar for jhaski

I created a webcrawler that holds a lot of data in a list and then outputs this data to a file. When I try to run 50 instances of this program at the same time using a batch file, the programs suddenly all terminate at once, without outputting the text …

Member Avatar for jrcagle
0
102
Member Avatar for Seagull One

In the python script for my robot, I'm searching for a way to detect a variable change. After doing a search, I found this example in VB.NET. [URL="http://www.daniweb.com/forums/post610941.html#post610941"]http://www.daniweb.com/forums/post610941.html#post610941[/URL] I've tried to translate it into a python bit, but with no success. What I want my robot to do is this: …

Member Avatar for jrcagle
0
100
Member Avatar for ChrisP_Buffalo

I want to iterate through the rows in two csv files and test values. For every row in file 1 that has the same value in Cell A as a row in file 2, I want to check to see if the file 2 value in Cell C is larger. …

Member Avatar for ChrisP_Buffalo
0
121
Member Avatar for Novasie

Hello! Ive been working on a little python program on a newbie course in python and ive come this far that ive created a program that reads from a file and counts the lines of the file (each line a players name with some stats). Then it asks for how …

Member Avatar for jrcagle
0
105
Member Avatar for Mackjan

My first function returns (a, b). The second function must control it if (a, b) are True or False. If it is False call again the first function until the user put in right numbers. It dose not work. Is it a good idea to do that in this way …

Member Avatar for Mackjan
0
89
Member Avatar for frijole

I have just modified a script that notifies you when you have a new gmail message. Right now it just print out "you have a new gmail message" But, I would like to use some sort of graphics or something. I have zero experience with this though. Any ideas where …

Member Avatar for frijole
0
180
Member Avatar for FreezeBlink

At various points in my text-based programs, I've had to write a function for use in multiple-choice menus. It needs to have the following qualities: [list][*]Ignores non-number input, repeating the request if it is given a string. [*]Can be given upper and lower limits on the acceptable numbers, repeating the …

Member Avatar for rikxik
0
85

The End.