15,181 Topics

Member Avatar for
Member Avatar for ABSOR

I just downloaded and installed ActivePython on my windows PC (XP). I can bring up the editor and can write very beginner lines of code in the editor and save and run the program. However, when I create any function the interpreter says there is an error, no matter how …

Member Avatar for ABSOR
0
90
Member Avatar for dangermini

Hey I'm just trying to develp some code for some coursework i've got to do. I am wondering is it easier for me to write the code for what I want to do and then integrate the PyQt GUI after I've written the code, or is it best practice to …

Member Avatar for dangermini
0
140
Member Avatar for saywell

Can anyone help me with a python script I'm writing to change a password in a batch file. I need to replace the old password with the new one. I can do this by getting the old password from the user by raw.input, but I'd really like to just replace …

Member Avatar for saywell
0
78
Member Avatar for Mackjan

I have a function when I use it outside the class as a function it works perfectly but when I want to use I as a method in a class I get a TypeError massage : [COLOR="Red"]Traceback (most recent call last): File "H:\python\prototyp_01.py", line 122, in <module> manupacians.koor(z) File "H:\python\prototyp_01.py", …

Member Avatar for Mackjan
0
147
Member Avatar for ivy47469

I am working on the odd number magic square problems. I start the first number in the last row and center column. It worked on the 3x3 square, but not on any other odd numbers. Can anybody check my code? [code] def magic(n): if n > 2 and n % …

Member Avatar for BearofNH
0
138
Member Avatar for donnerCobra

Hi, I wanted to ask if you can help me with my example-sourecode to Wrap an C++ Object. I know Boost, but I don't want to use it cause of several points. Does someone knows an example code for an Object Wrapper? Thanks A LOT!!! [code=c] #include <Python/Python.h> #include <string.h> …

0
63
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
296
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

The End.