15,194 Topics

Member Avatar for
Member Avatar for A no-name-moose

[TEX]Note[/TEX]: I've been doing this only for practice and [TEX]NOT[/TEX] for practical reasons, as you can see the output isn't realy HangMan-like and any combination of the right letters will be accepted so please do NOT comment about the funcunallity of the code! if it [TEX]DOES[/TEX]seem nice to you then …

Member Avatar for A no-name-moose
0
181
Member Avatar for dinilkarun

Hi, I have a Checklist box on a frame. On click on a button, I am disabling the Checklist box. self.chkLstBox.Enable(False) My purpose is to freeze the Check list box and only enable the scroll bars attached to the Check list box(Both vertical and horizontal). Presently the scroll bars also …

0
49
Member Avatar for anubisbe

hey all, I have this script : (see below) it looks in a db for cpid (unique identifier) and gets the rest of the data out of my db, and creates then a user in a hosting platform, but now to finish the script I need to add to the …

0
45
Member Avatar for defience

Hi, I found this sudoku solver online and it works good but I was wondering how I could get the answer that's in matrix form, to also print out in a single comma-delimited line, instead of 9 rows of 9? [code] from copy import deepcopy class DeadEnd(Exception): pass class Matrix: …

Member Avatar for defience
0
97
Member Avatar for TheNational22

I have a software that use command line arguments to create files. You go to the directory, type posidbfw /alt 1 1, it creates the files. I want to call this from one line. I was using subprocess.Popen, but it doesn't see the arguements, any help?

Member Avatar for sneekula
0
156
Member Avatar for TheNational22

Trying to create a zip file with yesterdays date. I think I got everything, but I am getting module has no object attrib error. Any ideas? [code] import os import zipfile import datetime today = datetime.date.today() yesterday = (today + datetime.timedelta(days=-1)) file = zipfile.Zipfile("CT" + yesterday.strftime('%m%d%y') +".zip", "w") files = …

Member Avatar for sneekula
0
127
Member Avatar for implor

I'm working with some web stuff and my script is downloading files from the internet. but if a file is not available or very slow i want my script to continue with next file. how do I do that?

Member Avatar for Gribouillis
0
107
Member Avatar for thane33

im sorry but i need help in plotting this graph on python, been doing it for the past 6hrs and i cannot generate the graph, would really really appreciate some help in it. [code=python] n=range(1,201,1) L=0.016 data=[] aetemplist=[] dxlist=[] ot=[] nlist=[] for i in n: etemp = finTempNum(i) ot.append(etemp) dx=L/i …

Member Avatar for sneekula
0
140
Member Avatar for gracc

Hi guys, I've written a couple of program modules ,one main program that imports the other. The problem is when I run the imported module it's fine but on exiting it closes my main program with it. Both modules work ok otherwise, also I can run them individually as well. …

Member Avatar for gracc
0
83
Member Avatar for mruane

I have decided that a text adventure would be better for me to learn from, as a visual game is confusing to me still. So, I was reading Chris O'leary's post about his text adventure game, Advent House, and got many ideas from there. I want to perfect his battle …

Member Avatar for Gribouillis
0
187
Member Avatar for resnostyle

Hello all, I am a recent member as many of you can tell. I do have one question tho. I was looking over the site and doesnt see a forum for python programming? Is it simply not popular enough, or has been shunned by the community? Or is it hidden …

Member Avatar for peter_budo
0
38
Member Avatar for ashli

Hey guys, I'm new to Python and I don't have much experience but I need to write a simple code that will generate four random points and four polygons and then find out if the points fall within the polygons. I know I need to use the random.random () function …

0
35
Member Avatar for TheNational22

Wrote this script to send a zip file that gets created every day and sent to a FTP server. In line 16, getting a windows 183 error cannot create file that already exists. I am using os.rename, and it works if I run it stand alone. Any ideas? [code=python] import …

Member Avatar for woooee
0
91
Member Avatar for tb808kid

This problem has been driving me crazy, I just can't seem to find anything in the Python docs. I've been working on a script, It connects to a remote server and downloads multiple RAR files as a "job", it then extracts them to the correct place. It works, but I …

Member Avatar for tb808kid
0
129
Member Avatar for blackcorner

Can anyone tell me if there is any function for replacing multiples substrings within a string. For instance we have this function call to replace multiple appearances of the same substring: [CODE=python] newLine = line.replace(';', '_') [/CODE] Here I replace all appearances of ';' with '_' But what I need …

Member Avatar for ZZucker
0
212
Member Avatar for paferlini

Hey all! i need to write a tuple into a file.. it was to work something like this: ---- [ICODE]c.execute('select * from valores') for row in c: file1.write(row)[/ICODE] ----- i already tried to do str(row) and everything, but nothing seems to work...

Member Avatar for jice
0
91
Member Avatar for Briz

Hey everyone, I have a project in which I need to program a Khepera robot too navigate through a maze and find a beacon on the first run. *On the second run it must go to the bacon via the shortest path. *The grid is a 4*3 (so i have …

Member Avatar for Freaky_Chris
0
192
Member Avatar for nealpcarpenter

Is this hard? I am introducing Python to my students and want to make a simple, interactive program that will, while it's running, 'listen' for any keyboard events. That is, I don't want to include an 'input' statement - that would pause execution till someone answered. I just want it …

Member Avatar for Freaky_Chris
0
218
Member Avatar for Stefano Mtangoo

Can somebody tell me how to do bolding and Italicizing plus underlining I have just started getting serious after long time "milk drinking", now I want to eat solid food. Thanks all, Steve [ICODE] import wx ID_EXIT =100 ID_BOLD = 101 ID_ITALIC = 102 ID_UNDERLINE = 103 ID_TEXT = 104 …

Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for lllllIllIlllI

Hi I have fiddled around with other GUI's such as pygame and wxPython but i wanted to use something a little more powerful when it came to 3D objects and i saw what PyOpenGl can do. But i spent ages looking for any help but i couldn't find any place …

Member Avatar for lllllIllIlllI
0
682
Member Avatar for paynegm

I am working on a homework project and i have it all done but the beginning and i can't figure out why i keep getting either errors or weird outputs. the following is the snippet that i am having trouble with. It keeps giving me an index error or when …

Member Avatar for jlm699
0
76
Member Avatar for john5kult

Hi everyone, I've made for few weeks a python module called prynt. This one, after been imported, will automatically redirect standard output to make a proper html or pdf. Many functions are available to obtain a ReStructuredText syntax which ones will be converted to the output. Curves created with matplotlib …

0
44
Member Avatar for usdblades

K so I am learning how to program in python and had a question about Jargon. Simply What is it?

Member Avatar for usdblades
0
95
Member Avatar for jworld2

Okay, sorry, I just posted a different thread here a couple days ago, I know. But I have another question and I've googled it and can't find the answer. let's say I have a list num=[1,2,3,4,5,6] and I want to add all of the items together for one big number. …

Member Avatar for jworld2
0
487
Member Avatar for knish

Hi, I have written 2 procedures. how best may i put it in class, def form. if i do not have procedures within a class, is it possible to call them where and as they are. Is this the best way to use python's strength. BRgds, kNish [code] import maya.cmds …

Member Avatar for woooee
0
165
Member Avatar for lllllIllIlllI

Hi My problem today is i have opened up the wxPython Demo and copied one of the pieces of code across to IDLE so i can have a fiddle with it. My problem is that at the start it goes [icode]from Main import opj[/icode]. Thats what stuffs it up. The …

Member Avatar for lllllIllIlllI
0
176
Member Avatar for iamgame

Anyway, sometime back, I wrote a little and simple GUI application (using wPython) which I call the Jumbled Words game. This was my first step into wxPython. Not a serious project at all, but hey, a nice project for a Python newbie like me at that time. :) You can …

Member Avatar for iamgame
0
756
Member Avatar for besktrap

hello everyone, just a quick question about pygame rotations. If i have an image, say "image.bmp", how would I zoom in on that image? Thank in advanced

Member Avatar for vegaseat
0
65
Member Avatar for mruane

I have been looking for ways to call images and to move them around the screen, but I see many different ways exist. What is the best way to call images? And, does it matter where the image is? If the images filepath is usr/bin/local/sprite_fantasy will that affect how I …

Member Avatar for vegaseat
0
73
Member Avatar for predator78

Hey guys, Well I'm onto images now but the tutorial I'm using seems to be good but I can't understand the input process. And I know you guys are great at this stuff so thought you might lend a hand here to get me up and started. The code the …

Member Avatar for lllllIllIlllI
0
151

The End.