Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Python Solutions: 101 - 125 of 289
 
I'm wondering if there is a way to create a tabbed interface with either PythonCard or wxPython.  Basically, I'm just wanting a simple preferences look like Internet Explorer uses within its "...
I'm finding that when I redirect stdout that I'm not getting all of the output that is usually presented say at the python prompt. For example, print "hello" will echo "hello" as expected, how...
I am attempting to concat. three strings within a FOR loop (see snippet).  My issue is, after the second string (y), there seems to be a newline or return character, which is messing up my out...
Hi all, I have created a python script which looks in a directory and returns the filename of the latest file to be downloaded there. Typically something like this gets returned "C:\tmp\tes...
I need my app to read a text, and replace the word "bomb" with *** I'm not having any luck can anyone help?
I am experiencing the following error after compiling a Python program into an executable...    C:\Python\Python25\pyinstaller-1.3\minimal\distminimal>minimal.exe    no resource file for m...
i'm trying to convert some python code to perl but i dont underststand what: x = struct.unpack('!L', and also: value = struct.pack("<L", x) are doing.  what exactly the formaters !...
Hi, Experts. I've read through the Dive into Python book in the section about SOAP and Web Services but I can't find what I am looking for in there.  What I want to do is this: 1. dynamica...
Hi Experts, I have a Python class called "KeywordTree(object)" already. Now I want to create another Python class "KeywordMember"  to contain some extra data. The "KeywordTree" class s...
Hi - I am starting to work on a Python project using GTK and I am looking for GUI design tool for it similar to what Active State's "GUI Builder" does for TKinter. Are there any such tools ...
Hello, I found this python script below and I would like to have it modified some.   Is there a way to make the "argv[1]" workspace include all subdirectories within the designated workspace?...
Greetings: I recently was asked to become familar with Python.  I figure the best way to do that is to take a simple application in C/C++ and make it work in Python.  Hence, my questions ar...
Hi All, I have having some difficulties with a piece of sciprt in paython trying to read rows from a database. the lines of my code are as below: def searchRecord(userid):    cursor.exe...
I am having problems working with file uploads in Python.  I am using the following code: <form action="/links/add" method="POST" enctype="multipart/form-data" accept-charset="utf-8"> <inp...
I am using the Python code below to write to an MSAccess DB through ODBC. I don't get any errors, I know the database is being accessed because it creates a key, but the database isn't close (...
Error: C:\Documents and Settings\u4cncmgj>c:\python24\python "C:\Documents and Setting \u4cncmgj\My Documents\code\mosaic_to_new.py"   File "C:\Documents and Settings\u4cncmgj\My Document...
I have python 2.2 and MySQLdb.   A sql update command generates errors of sql syntax.  Please advise. Here is a fragment of python code: cursor.execute("""UPDATE items SET zip = '%s'...
the following code prepares the window in forground (on windows xp) into a screenshot and then ready it to be examined by reading it pixel by pixel in 3 values of RGB is it possible to use ...
I am trying to write a python script in Linux that will execute a series of shell commands when run by a user.  I am running os.system to do this but I noticed one problem.  I need to pickup a...
I'd like to match a string with multiple lines like this: s="<html> the first line \n the second line </html>" note that the \n in the string makes it in multiple lines I tried followin...
I have files in a folder that that all end with a 2 digit number xxxx_01 to xxxx_71 and they are extension .rst  Is there a way I can automate separating them into different folders based on t...
I'm trying to convert a float to an integer in a data file with the csv module and post the change to an output file.  Each row looks like this: "2008-09-14 23:00:00",1328,3161,-0.052,0.166...
Hi i want to call an python prog from another program. I want to know how to convert a program to exe . while compiling it converts to an .pyc file.is it possible to convert to an .exe. hel...
Hi Can anyone provide or show me where I can find a python script that can parse an Oracle tnsnames.ora file (Oracle 8-10)? The ideal solution would also be able to resolve host names to ip...
Hello, I am trying to reclassify grids which I have placed in a common workspace. I'd like all values of Zero replaced with NoData and then put into a new workspace. using guidance from th...