15,181 Topics

Member Avatar for
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
127
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
210
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
90
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
189
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
216
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
675
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
75
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
42
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
93
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
484
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
164
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
173
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
734
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
63
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
71
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
148
Member Avatar for predator78

Hey guys I finally got my word unscrambler working the other day, now I fire it up with same code same everything and for some reason getting double output from a list that shouldn't be. So if someone could either look this over and find a problem or maybe do …

Member Avatar for ZZucker
0
209
Member Avatar for mruane

I plan to write a detailed rogue like in python. But first, I have a few questions... how do i get started: how to make the screen how to make the maps how to make the main character move when you press a key how to make it saveable if …

Member Avatar for Freaky_Chris
0
202
Member Avatar for jworld2

Okay, so I've been working on a program that converts ascii values to text. The way that I have the code is functional, yet not convenient. Let me post the code and then explain.- [ICODE]letters=[' enter ','',' ',0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N',\ 'O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e',\ 'f','g','h','i','j','k','l','m','n','o','p','q',\ 'r','s','t','u','v','w','x','y','z'] numbers=[10,13,32,48,49,50,51,52,53,54,55,56,57,65,66,67,\ 68,69,70,71,72,73,74,75,76,77,78,79,80,81,\ 82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,\ 106,107,108,109,110,111,112,113,114,115,116,\ 117,118,119,120,121,122] # Ascii values in …

Member Avatar for jworld2
0
143
Member Avatar for jlm699

First you'll need to learn how to use code tags. As your code stands, it is unreadable because all indentation has been lost. If you use code tags, your code is not only readable, but forum members can easily copy and paste it into their code editors to tinker with. …

Member Avatar for vegaseat
0
117
Member Avatar for aot

I'm having trouble unpickling a file -- it gives me ValueError: insecure string pickle. The trouble is, it is nearly identical to another file that I was able to unpickle just fine. For the life of me I cannot see what is strange or different about the new file -- …

Member Avatar for woooee
0
979
Member Avatar for Tribesman

I need help with this program please. This is a program that will turn your first name into a group of numbers with a being equal to 1 and so on. This program does this but I need to have it total all the numbers in the name. I was …

Member Avatar for jlm699
0
259
Member Avatar for keripix

im having trouble trying to run more than one applications from my program. I thought threading might help (but actually i hav little knowledge bout it). below is some part of the program: [CODE]if 'pdf' in self.ebook: thread.start_new_thread(self.open_pdf()) elif "chm" in self.ebook: thread.start_new_thread(self.open_chm()) def open_pdf(self): os.system('evince '%s''%self.ebook) def open_chm(self): os.system('gnochm …

Member Avatar for woooee
0
92
Member Avatar for Luckymeera

hi guys im stuck on my project as im new to python. im using tkinter module. i need to create some traffic lights along the stretch of road and the vehicles should me able to stop the when it is red and should go when green lights. also they should …

Member Avatar for Gribouillis
0
1K
Member Avatar for safir8100

Hi, I am trying to get my python program to download ftp files directly in the program. Connection stuff is done. I managed to download through the command line, but now I want get the same thing done using a python program. Can anyone help me (all kinds of solutions …

Member Avatar for jlm699
0
110
Member Avatar for lumeniel

Hi I have this code and a problem that i don't understand. In [I]image_matrix[/I], a PixelArray object where there is a image. I want to separate this image in frames then I capture pixel by pixel in a double [I]for[/I] with the dimensions of frame. The variable [I]h[/I] represents each …

Member Avatar for lumeniel
0
95
Member Avatar for bryanleo

Hi how do I flush a specific number of bytes in the Input buffer? I don't want to use flushInput() because it removes all bytes. I just want to remove a certain size. What command can be used? Thanks, Bryan

Member Avatar for jlm699
0
119
Member Avatar for Prahaai

Good day. I am using python for quite some time now and i decided to advance a little. I want to write a little extension, or add some C modules for my python. I use Active version. What i want to do is write some wrappers for a game library, …

Member Avatar for Prahaai
0
159
Member Avatar for bryanleo

We are trying to read data from a microcontroller and interface it through serial port. The output is then displayed in Python using Pyserial or the hyperterminal, the former is more important When you touch the input pins of the microcontroller the value changes real time in hyper terminal. But …

Member Avatar for bryanleo
0
231

The End.