15,181 Topics

Member Avatar for
Member Avatar for b04e3ian

Hi there, I'm very new to programming, and I have this assignment where I'm supposed to create a 2D game in python. The character in the game is Homer Simpson, and I'm trying to get him to move within the maze thats already been created for me. I believe I …

Member Avatar for vegaseat
0
393
Member Avatar for MrMark

I'm writing a simple web server in python using the BaseHTTPServer library. I can serve text content (ie html pages) with ease, but im running into troubles when i try to serve images. The image gets corrupted in transit and when I manually download the image from the website and …

1
54
Member Avatar for Azurea

Well, I couldn't think of a better word than online for a title, but I meant allowing others on other computers to connect to a server to play a game. Right now, I need help in planning my "online" game of Go. I'm moderately new to servers and clients (I …

Member Avatar for Azurea
0
183
Member Avatar for Peanut85

hello, Does anyone have a script that searches the network and reports on which computers a given directory is found. e.g.: i want to see which computers in my network contain the folder Microsoft Office.

0
53
Member Avatar for pythonuser

Hi , I would need to compare two jpg files using python. Could some one help me, how I can do this Thanks

Member Avatar for bodhankaryogesh
0
270
Member Avatar for Xlphos

Hi I was wondering if anyone can help me. I am trying to create a game in visual python and have come to a complete stop. I need to be able to run many while loops at the same time, i have looked into threading but can't get my head …

Member Avatar for woooee
0
140
Member Avatar for Blujacker

Hello I am trying to work with threads and wxPython, but i have one problem. In my application i open main Window and i then i am trying to open another window in thread, but the second window does not work. Take look on my code, please: [CODE] #-*- coding: …

0
55
Member Avatar for paafio

Is there a way to call PLINK--the genomewide analysis software program from Python?

0
37
Member Avatar for zzsu

I use pymmsql to access MSSQL 2000, with a table, I store Chinese Character in NVarchar field, Chinese Character display normally when I query them by MS SQL Query Analyzer under Windows or by unixODBC under Ubuntu. But when I query those data by pymssql or pyodbc, all Chinese Character …

Member Avatar for zerocq
0
49
Member Avatar for drjekil

I am totally new in biopython and its my first program.so may be i am asking stupid question. I am working with a text filelooks like this: #NAME AA TOPO ACCESS DSSP STRIDE Z-COORD 1lghB A i 79.8 H H -24.58 1lghB V i 79.6 H H -22.06 1lghB H …

Member Avatar for drjekil
0
160
Member Avatar for Jimbo43

Hey, all. I'm writing a progam that uses Binary search trees to create a game similar to the 20 questions game. Unfortunately, I'm not quite sure how the code works completely. I think it should probably have recursion in it somewhere as we just got done covering that, but I …

Member Avatar for Jimbo43
0
2K
Member Avatar for Shakis

im writing a personal program thats storing scores. The layout is done using Tkinter using labels buttons and entry widgets, however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, [code] for m in range(1,10): self.input_score = Entry(frame,width=6) self.input_score.grid(column=5, row=m) [/code] …

Member Avatar for Shakis
0
77
Member Avatar for crackers

Im only new to python but im trying to write a code that will allow me to randomly generate a number between 1 & 15, I know that part is import random def main(): number=random.randrange(15) + 1 But im not sure where I need to go to from here to …

Member Avatar for crackers
0
152
Member Avatar for sicantik03

hey guys I need you help, I'm new comer in here but I hope this can help me. I'm writing a code that can read the file (such a story or newspaper) then the identifythe story if that story has a itemY in it the it will print +1 otherwise …

Member Avatar for woooee
0
138
Member Avatar for Islandstone

I have a problem, and have been searching for a solution many different places. I have a program written in wxPython that downloads and reads a file. I would like it to do that every hour, but the problem is that the wxPython app is running in a loop ( …

0
44
Member Avatar for killingcheese

I know that frets on fire was made with python, but a question i have had was whenever you save something in python idle it is a .py, and you cant run them unless you have python (and if they do, they can just edit your program) installed, but how …

Member Avatar for jaux
0
116
Member Avatar for valorien

Hi everyone, Just started programming in Python and iI'm already starting to like this language very much. I have a problem with a program I wrote last night - I'm trying to ping a certain host using [CODE]os.popen("ping xxx.xxx.xxx.xxx"[/CODE] and then read the %errorlevel% from my system using [CODE]result = …

Member Avatar for Ene Uran
0
1K
Member Avatar for ChrisRiv91

Hi, I'm new to these forums. I've been working with java in school, but I can't stand the language. So I've been working with python and find it's very easy to understand, and I actually enjoy working with it. So just for fun I've been working on a pretty basic …

Member Avatar for Ene Uran
0
861
Member Avatar for strictlycustom

Well this is the last program, it's not like anything I've done before. I'm reading through the Chapter that it's after and everything look foreign to me. I need to create a program that prints a report like the following: Program 10 by (your name goes here) Book Total Quantity …

0
55
Member Avatar for shadwickman

Hi, I was wondering if it's possible to call a function using a string that is the exact same as the name of the function. Here's an example in which I wanted to make 4 bitmap buttons using a for loop, and the event bound to each one would be …

Member Avatar for shadwickman
0
157
Member Avatar for timo_81

Hi people, I'd like to add/create labels dynamically at runtime. Just imgaine the folowing: I have recieved a value let's call it ' length' it has a a value already that was was calculated before. Now I want to create/add labels the amount of length. That is my code..unfortunately it …

Member Avatar for timo_81
0
215
Member Avatar for i_saw_some

does anyone know how to have IDLE or Ipython display a string with line breaks as multiline text in the display rather than a big string wrapped around with '\n's? Instead of [code] return false;\n }\n\n function validPeriod() {\n for (var i = 0; i < periods.length; i++) {\n [/code] …

Member Avatar for i_saw_some
0
84
Member Avatar for xRuP7uR3x

Greetings everyone. I have been working on a script to convert a number from any base to any base up to base62. The user supplies the original number, the starting base, and the end base. My problem arises when converting the fractional part from base10 to the end base; the …

Member Avatar for jrcagle
0
152
Member Avatar for StudentMark

Hi, I'm having some problems and i'm hoping someone can help. I'm using python 2.4 and have the pywin library installed. I have a listbox which when I click on a description of a product displays the whole record, so for example I select "bike", and press a "select" button …

Member Avatar for woooee
0
246
Member Avatar for drjekil

hi I am from chemistry background and no idea about programming,trying to learn biopython.Can u tell me pls which books explain things very simply? i will be greatful thanks in advance.

Member Avatar for bumsfeld
0
71
Member Avatar for relm86

Hi I just started to learn to program and I choose python cause I heard it was easy to learn. But I already ran into proably a very stupid problem that a only a noob like me would need help with. I'm using idle to program with in windows and …

Member Avatar for ZZucker
0
107
Member Avatar for foreverold

I'm attempting to create 5 card stud poker game, I'm almost in the final step of it but I am not understanding how to implement it. Evaluate each players hand to determine winner(This is where my difficulty reside at the moment) Sorry if the code is messy and long, still …

Member Avatar for BearofNH
0
198
Member Avatar for strictlycustom

I need to have 3 functions in addition to the main. I got a response before except it didn't have 3 functions. The 1st function asks the user how many hours were worked and the pay rate and returns this information to main. The second function calculates the regular hours …

Member Avatar for strictlycustom
0
81
Member Avatar for sanoski

OK everyone, this is probably gonna be a stupid question, so brace yourself. I'm brand new to all this. I'm really not having a literal problem, but it's driving me nuts because I don't know what it is. Forgive me if something like this has been discussed before. I just …

Member Avatar for ZZucker
0
104
Member Avatar for StudentMark

Hi, I'm really struggling with coursework for a university project, I need to be able to link to an Microsoft Access database and read and write to it using a Tkinter GUI, so far I have the following. def do_select(): global list_box, cursor item = list_box.curselection() name = list_box.get(item) stmt …

Member Avatar for StudentMark
0
106

The End.