15,181 Topics

Member Avatar for
Member Avatar for ihatehippies

Is it possible to separate python's syntax checker and check a string object with it? I've read through the py_compile module but it looks like syntax checking it done at a fairly low interface level. Anyone tried this before?

Member Avatar for vegaseat
0
112
Member Avatar for billymcguffin

I was wondering if it is possible to convert audio files with python. like wma to mp3. thanks!

Member Avatar for vegaseat
0
80
Member Avatar for harrykokil

hi guys.. i want to disable a button in tkinter (this mean i can't click on that button) for 3 seconds if the user has already clicked on that button. how can i do that?

Member Avatar for vegaseat
0
116
Member Avatar for Aestter

I've been trying all day to make an executable from python file using pygame too. I was doing okay until it got to the mixer module which is where it failed quite epically. I then searched the web a bit and came up with this as it was on the …

Member Avatar for Aestter
0
584
Member Avatar for lickettysplit

hi ive got a school assignment where i need to access data in a MySQL table, use style formatting and output it in a HTML file. Additionally, there is a frequency column that I need to use to create the style. The more frequent it is the larger the font …

Member Avatar for poeticinsanity
0
113
Member Avatar for bond00

I've been working at this for nearly a week and just don't understand why it isn't working. The code works great in Windows, but once I move it to Linux, it doesn't work. I'm basically using mechanize to login automatically to a website. The website requires cookies, however, and I …

Member Avatar for bond00
0
160
Member Avatar for poeticinsanity

I'm new to the forum and to web programming. I appreciate all the help thus far, and I have a couple more questions. 1. What is the purpose of HTTPconnection object? If i can get a page simply using an HTTPresponse object formed from .request("GET",URL) call? What is the difference …

0
62
Member Avatar for daviddoria

I'm just starting python and it seemed reasonable to go ahead and learn the new version. I read that numpy wont be available for python3 until at least 2010. All I need is a basic "vector", "matrix", and some basic functions like matrix/vector multiplication. Is anything like this available for …

Member Avatar for sneekula
0
134
Member Avatar for gujjar19

Hi, I am new to python. I am working on parsing text from a smi file . I want to extract only dialogues and want to ignore the timestamps (lines starting with <SYNC) for one case, e.g. Below is part of smi file <SAMI> <HEAD> <Title>ÁŠžñÀ» ÀûŸî ÁÖŒŒ¿ä.</Title> <Style TYPE="text/css"> …

Member Avatar for gujjar19
0
3K
Member Avatar for pydude94

im a first time programmer learning python from books and so far ive learnt how to create and define functions but once ive saved them, im not sure how to call them so that i can use them. it works fine when i type in the function name but only …

Member Avatar for pydude94
0
241
Member Avatar for poeticinsanity

I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into …

Member Avatar for poeticinsanity
0
215
Member Avatar for mg0959

I have written a program that is supposed to take a string via a socket connection and echo it back. This program is also run as a service. I can get a client program to connect to the service if the client program is on the same machine as the …

Member Avatar for mg0959
0
149
Member Avatar for hughesadam_87

Hey guys, Have been working on this tiny simple code for an hour and can't figure out how to fix it. The code does this: Reads in 3-column, tab-delimited data file Adds "1000" in the fourth column to every line Writes out the 4-column file [ICODE]def columns(infile, outfile): f = …

Member Avatar for woooee
0
129
Member Avatar for harrykokil

hi guys.. hw can i reset my whole software in tkinter?? as if to restart running the software?? thanks..

0
47
Member Avatar for perksieuk

Hi everyone I have been trying to combine the data from two seperate text files into a new text file. The code works OK and no errors are produced, but at the join between the two files, a few lines of data are left out. The same happens at the …

Member Avatar for Deepak.G
0
95
Member Avatar for dinilkarun

Hi All, I am using the .search function. [code=python] strValue="XXX" strTemp1="YYYXXX" strTemp= strTemp1.search(strValue) [/code] Python is not able to recognise the .search function. AttributeError: 'str' object has no attribute 'search' What should I import for this? Please help!

Member Avatar for scru
0
2K
Member Avatar for mohankumar554
Member Avatar for sillyboy
0
65
Member Avatar for betatype

I have a problem that I've been puzzling with so I thought it was time to ask the experts. I have two csv files that I am trying to search between. One csv has a Title column, and a URL column. The second has a variety of columns but a …

Member Avatar for betatype
0
124
Member Avatar for bhanu1225

Hello All. While making ".py" program to ".app", we need some steps to follow. [B]1. Create a setup.py file $ py2applet --make-setup MyApplication.py 2.Clean up your build directories $ rm -rf build dist 3.Development with alias mode $ python setup.py py2app -A Running your application 1.$ ./dist/MyApplication.app/Contents/MacOS/MyApplication 2.$ open -a …

0
46
Member Avatar for hunterm

I have to write a function to rotate an image 90 degrees clockwise. I got it to rotate. But it also flipped and rotated counterclockwise. So wrong way, and it flipped along the y-axis. Really weird. [code=python] def rotate(self): rotatedImage = EmptyImage(self.height, self.width) for row in range(self.height): for col in …

Member Avatar for hunterm
0
110
Member Avatar for poeticinsanity

I am coding a web spider for research purposes and have run into an error I am uncertain about. I am fairly new to web programming and need a bit of guidance. I use http.client to get a connection, request a site, get the response, and read the resonse into …

Member Avatar for scru
0
73
Member Avatar for fkadri

Hi I'm trying to create a dialog box with GenBitmapTextButton buttons. When I create the dialog using the standard button, I can use the enter key to push the button, and the escape key to cancel the dialog. However, when I use the GenBitmapTextButton, neither the enter nor the escape …

Member Avatar for fkadri
0
243
Member Avatar for hughesadam_87

Hey everyone, I have the following data set A B C D E F G H I J K L M N O P Q R S T Where every ten lines or so (though not a regular pattern) the data breaks its format and two of the data pieces …

Member Avatar for Alxandr
0
108
Member Avatar for hughesadam_87

First let me say thanks to everyone who has been responding to my posts and providing valuable insight. I have been trying to add rep whenever possible, and appreciate your help. My assignment was to write a python code which takes data from an infile, then has the user specify …

Member Avatar for jlm699
0
320
Member Avatar for Whelk

I found a nice little example chat server written in Python using Twisted. The problem I'm having is identifying each connected client in a way that I can use to send info to specific clients. So in the chat server situation, it'd be used to send private messages. I've spent …

0
89
Member Avatar for Vexten

I'm trying to make this game (pseudo code below) And I have no way to go about doing it. The game will have 30 trivia questions, and the player will have 3 lives When they get the answer correct, they will move on, and if they got all questions correct …

Member Avatar for Vexten
0
98
Member Avatar for billymcguffin

i need some help writing a GUI for the program i'm making. it is a simple text-based number-guessing game and i would like to have the prompts displayed in a nice window. i would also like to have the "number_guesses" and the "guess_list" variables displayed off to the right of …

Member Avatar for billymcguffin
0
346
Member Avatar for hughesadam_87

Hey all, I ran a code today which digested an input file which was 304 MB, consisting of about 10 million lines with six columns a piece. I ran the code and got an indexing error. In troubleshooting, I copied only the first 1,000,000 lines into a new data file, …

Member Avatar for hughesadam_87
0
148
Member Avatar for Joe Hart

I am using a program called MUST. It is for the electrical transmission industry. It uses excel to do its computations. It runs macros based on the buttons that were pushed on a form. The outputs are excel based worksheets. It has a feature to allow you to record the …

Member Avatar for slate
0
122
Member Avatar for tehbrozor

Hello, I am trying to label the axes of an array of subplots. The units of each plot are the same so I would like to just label each axis once. The array is of in determinate size. For odd numbered rows/cols I just use ylabel/xlabel on the middle row …

Member Avatar for tehbrozor
0
76

The End.