15,181 Topics
| |
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 … | |
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 … | |
| 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 … |
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", … | |
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 % … | |
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> … | |
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, … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
I would like to create a grid with Boa, but I dont know where to set the number of rows and columns. | |
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. … | |
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 … | |
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 | |
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? | |
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 … | |
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 … |
The End.