15,181 Topics
| |
Hello everyone: This is my first post on the site -- so if you think this post is misplaced or not formatted correctly or whatever, please let me know. Please accept my apologies in advance. My issue? I'm trying to integrate a Python script to help automate tasks we use … | |
I am new one for python web service. I need to switch the below java webservice client source code to python.Two services. One is systemService, the other is queueService. It needs to maintain session for queueService to use the connection to inews server in systemService . Who can help me? … | |
so I have a script that is taking input from a text file and using it to populate an excel spreadsheet. it keeps giving me a UnicodeDecodeError, dying on the ± symbol, I'm assuming its not in the codec that is being used: im using the xlwt package for writign … | |
Hi Ive been working with PHP, AS3 and some javascript for a while now, and want to move into something that allows me to develop desktop apps... I considered Java, but have become used to PHP's loose typing or whatever the technical name is, and so after some investigation Python … | |
Hey all. I'm new to this forum and Python. I need a program that can search an inputted keyword through all the files that end with the ".txt" extension inside a given folder. The output should include the name of the files which contain the keyword, the sentences which contain … | |
I am trying to combine two multi-element dictionaries but am running into a problem. From the example below, what I expected was the dictionary x to contain all three unique combinations. What seems to have happened is that the y dictionary overwrote the x dictionary. Am I just using this … | |
Hi, I have a minor website that I wish to maintain that I do for gratis (for free). It is for a school. I wish to be able to automate the task of adding links and photos and text body. I already use a css template to maintain the look … | |
How can I hand off variables from web form to python, process then post back to a response page? PHP Form Code: <form method="post" action="test.php"> Mobile <input type="text" name="mobile"/> <input type="submit" value="Submit"/> </form> and test.php (that the form was posted to) $mobile=$_POST["mobile"]; **pass to python to process, write to db, … | |
I'm not a python programmer, I'm mostly a hobbist that lately is developing a project in php/Mysql. Now I find myself in need of sending two python variables to one mysql table. I found the wonderful MySQLdb module but unfortunately only supports 2.3-2.5, while to run this specific python script … | |
Hello, I am new to the IIs server6.0,I don't the process of configuring python files in IIS server6.0.I want to run my python file using IIs server6.0.How can i do this one. Please help me in this issue. | |
I'm trying to store or arrange three sets of two-dimensional data into three 2xN matrices that are stored as NumPy arrays. [CODE] 1. import os # for file handling functions 2. import numpy as np # for array/matrix processing 3. import matplotlib.pyplot as plt # for general plotting 4. from … | |
| Hi there, I am running a program in order to generate some reports. The program starts connects to the database takes the first customer and then calls a method in order to create a report for this customer. When it completes takes the second customer generates the report etc etc. … |
I'm just learning python. I'm trying to figure out while loops with s.argv in a larger script on my network. hopefully this small example will show basically what i'm trying to do. argtest.py import sys for arg in sys.argv: print arg #which gives me: Life is good but could be … | |
hi all, when i am running a Python script that i made, i get a list as a result ( i do not know the number of items stored in that list ) HOW can i return each element of the list and store in an array defined in a … | |
I'm trying to figure out how to create a custom dialog I can get the dialog to pop up when I click on the corresponding menu item but I cannot figure out how to add buttons, static text ect... Any help would be great. [CODE] def OnAdd(db): dia = wx.Dialog(None, … | |
I don't know where to post it in Daniweb, but since I'm used to Python forum, I hope someone will help me here. Advices of as to where I should post this are valid! I have made a project, compiled it with py2exe and packed fine with Inno setup. The … | |
Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", … | |
hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks | |
Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return. | |
Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? … | |
Dears, I would like to create a list of QWidgets (lets say QDial). No problem till here. self.motorDial = [] self.velocityEdit = [] for iMotor in xrange(3): self.motorDial.append(QtGui.QDial()) self.velocityEdit.append(QtGui.QLineEdit()) The problem is to connect each of these Widgets to a function, passing to the function the index of the QDial … | |
Hi all, I just had a simple regular expression question. Why does this only match the first character in the string? it should find the 'a' no matter where it is in the string, right? [code=python]C:\Python26>python.exe Python 2.6.2 (r262:71605, Apr 14 2009, 22:46:50) [MSC v.1500 64 bit (AMD64)] on win32 … | |
Hey, I've been trying to install pycURL on my Python install on this Mac for the past 3-4 days now and I can't seem to get it to work. I have easy_install setuptools installed and I've been using the command: easy_install -U pycurl and it finds the package just fine, … | |
I was reading 'Starting Python' trying out in the shell some of the examples. However, I get an error with this [URL="http://www.daniweb.com/forums/post116650.html#post116650"]one[/URL]. What am I doing wrong? [code=python] >>> def sum_average(*args): size = len(args) sum1 = sum(args) average = sum1/float(size) # return a tuple of three arguments # args is … | |
Can someone please tell me what I am doing wrong. I know this is easy, but I haven't managed to make it work properly. [code=python] overwrite = None while overwrite != 'Y'.lower() or overwrite != 'N'.lower(): overwrite = raw_input("Do you want to overwrite (Y/N)? ") [/code] It doesn't exit the … | |
Hey guys. This looks like the right place to ask this question. I just started Python, and I'm still getting familiar with syntaxes and such. Right now, I'm trying to make a program that will make an Isoceles triangle with Turtle module and math module I really don't know what … | |
I was googling for a way to reverse a string and I found this. [code=python] >>> 'asd'[::-1] >>> 'dsa' [/code] It works, but there was no explanation where I got if from. Can someone please be kind enough to explain it. Thanks. | |
Hi, I was trying to use Checkbutton widget from Tkinter and I searched here in the forum for example code how to apply it, and I couldnt find any. So I have to test it myself using some documentation of Tkinter. Since I couldnt find any relevant code in this … | |
I'm trying to make a game with pygame but none of the key constants work for the apple command key. How do I determine if it is pressed or not? Thank you. | |
Well I'm new to wxpython and in trying to learn I started making a small Phone Book program but now I'm stuck need some help on a few things. First thing is when I click on my New Contact in my menu I want a new frame to appear with … |
The End.