473,543 Members | 2,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
1,671
thread by: nav010 | last post Dec 3 '08 by: nav010
Hello Everybody I am trying to load vb.net dll in Python, but its showing errors. >>> from ctypes import * >>> dll = windll.Userdll >>> dll <WinDLL 'Userdll', handle 1050000 at cade50> >>> dll_function1 = dll.xml_load("C:\test.xml")
0
1,295
thread by: Apostle | last post Dec 18 '08 by: Apostle
I use ctypes to play AUDIO using bass.dll found here: Un4seen Developments - 2MIDI / BASS / MID2XM / MO3 / XM-EXE / XMPlay I have gone so far and tried as they advised me at their forum entry here: New Python Developer with Bass But I still get errors. Can anyone take code and analyze to point out source of error? Here is the code, pse...
0
2,049
thread by: JimPGH | last post Dec 23 '08 by: JimPGH
I am trying to use the OpenCV cvFitLine() function using the Python SWIG interface to OpenCV. My problem has to do with the fact that the last argument is a pointer to an array of four floats (to return the fitted line parameters). My first mindless attempt looked like this: line = cv.cvFitLine(img, cv.CV_DIST_L2, 0, 0.01, 0.01, line) ...
0
1,749
thread by: epidemic | last post Dec 28 '08 by: epidemic
Hey everyone, Below is my code for Python. The reason I'm using times is so that the program runs and then goes off a little bit in the future. So what I do is set the time about a minute later than the current time. Then I run the program and when it is time, the boxes come up. Sometimes they will go the current location fine, but other times,...
0
1,321
thread by: Ron Clark | last post Dec 29 '08 by: Ron Clark
Can I run BLT on Windows Vista? If so, where can I find that version? Thank You, Ron
0
1,404
kudos
thread by: kudos | last post Dec 31 '08 by: kudos
Its turned into a tradition, making small tkinter "cards". Here is one for the christmas and new year. Paste and run from python! http://www.freewebs.com/jan_ma/look.png import Tkinter import random import time #hc&hy kudos@spray.no
0
1,656
thread by: Silgd1 | last post Jan 7 '09 by: Silgd1
Can anyone please shed some light on how to name an attachment in an email. I am sending out an email with an attachment that is being named using the default "ATT00016.txt" format. I want to actual apply a name to the attached file. I haven't found much on google. Any help would be greatly appreciated. Thanks
0
1,078
thread by: strobon | last post Jan 31 '09 by: strobon
Iam having trouble to create a python program with glade interface. This program is supposed to help a newbie linux user who is totally offline to install a debian package without worried about the dependencies problem. for example user would like to install "Wine", they have to install first "binfmt-support" and "libaudio2" package....
0
1,733
thread by: TonyAm | last post Feb 5 '09 by: TonyAm
I've just gotten started with Python and would like to control a device that accepts synchronous serial input. Rather than just having serial data streaming out via pyserial, I need to also detect the clock signal from the "device" I want to control. Are there any examples of Pyserial being used this way? Thanks for any help.
0
1,818
Thekid
thread by: Thekid | last post Feb 5 '09 by: Thekid
I'm trying to auto send a form submission to a website but it isn't working. I've done this before and it worked but for some reason, using the same basic code, it doesn't seem to submit it. I'm using urllib & urllib2 to open the page and re to parse the info. On the page is a text entry field and a 'submit' button. I've compared the source code...
0
1,193
thread by: klia | last post Feb 14 '09 by: klia
hello everyone How can i be able to prompt users to query their search about photos Date in which date formate is "2008:12:10". by the way the following codes are hardcoded. import os import sqlite3 from pysqlite2 import dbapi2 as sqlite3 #import Database.py #Retrieving Data from DB
0
1,950
thread by: andreachilam | last post Feb 16 '09 by: andreachilam
I am doing a project of creating a playing pool and 2 balls bouncing within the pool. I have tried to use "while loop" and "if statement" to set restriction limiting the ball not to bounce out of the pool. However, the ball doesn't move or bounce. It moves but stops after it hits one of the walls when I write this function below: def...
0
1,610
thread by: cnivas | last post Feb 18 '09 by: cnivas
Hi, I'm doing a small application in python using mac os x. Now, I want to insert an image in the web application. I have given the image path also... but it shows "?" this symbol.... If the application server runs then the image displays. but if we keep the web application on the net then it is highly impossible to run both the web server and...
0
1,263
thread by: klia | last post Feb 23 '09 by: klia
Hey guys; I am trying to develop a tiny program using python to search inside sqlite database with file extension is .db in which the program will ask users to enter their search query and base on that it will retrieve the result But I need the program to have some smartness in search mechanism in which the program will guess that the user...
0
1,377
thread by: ashokd001 | last post Feb 25 '09 by: ashokd001
I have asked to write a event based function as below. Platform : windows Language: python Problem: I Have a specific folder in c drive. c:\event this folder is shared to all user with write permission.Now if any body create a file or folder inside this c:\event folder or its...
0
3,632
thread by: neeru29 | last post Mar 2 '09 by: neeru29
I'm using Pcapy and impacket module for packet sniffer. I'm able to capture the whole data in a variable and display it. I want extract the IP addresses , Port no's and Payload data into separate variable and display it. code is as follows: import sys import string from threading import Thread
0
2,257
thread by: celery6541 | last post Mar 6 '09 by: celery6541
Hi all, I am trying to use urllib.urlencode to post a multidimensional dictionary to a php page. This is the code I am using test = {} test = {} test = "bang"
0
1,141
thread by: 15153681 | last post Mar 10 '09 by: 15153681
hey guys, I need help trying to simulate a grid/matrix into a visual effect; where the numbers in the grid/matrix represents the amount of sand grains there is in each cell. PLEASE if anyone can help, I have a 5-by-5 matrix, and random numbers in each cell (from 1 to 7) THANX
0
1,263
thread by: pracas | last post Mar 17 '09 by: pracas
I have a user interface GUI, the user uses this to send data to the serial port. the interface has 3 buttons for which 3 different types of data will be sent to the the serial port.(i have an arduino connected to the serial port that takes care of the data) now i have data coming in from the serial port every 2 seconds and would like to update my...
0
1,724
thread by: datapata | last post Apr 16 '09 by: datapata
Hi I have some C++ code that I need to access from Python. I don't need to access any classes or anything, just a couple of functions that take one array as input and produce another array as output. The sizes of the arrays are known beforehand if that's any help. So the functions are of the form double *foo(double *in, int size); Within...
0
1,856
thread by: drtwkim | last post Apr 27 '09 by: drtwkim
Hi.. I can't speak english very well. I have writting code a program with VB & Python - COM Server : Visual basic (ActiveX EXE) - COM Client : Python I expect to attempt that is retrieved a return value. but, don't returned a event value ( in python)
0
1,925
thread by: ateale | last post May 21 '09 by: ateale
Hi guys! I am having a bit of difficulty trying to get to a 'timecode' track in a QuickTime file using the QTKit framework in Mac OSX 10.5 I am using XCode 3. I have a QTMovie object (set as self.movie) and I can get my python fingers into it a little. This is what I can get to so far allTracks = self.movie.tracksOfMediaType_("tmcd")...
0
1,907
thread by: Condor06 | last post May 26 '09 by: Condor06
Hi, I have problem with big files transfer (>100 MB) over the XML-RPC, is there some limitation by specification of this protocol? I can't find nothing about this, but when I try to transfer some bigger files, it fails!? P.S. I know that XML-RPC is not good choice for file transfer, but it's no option for me to change this technology with...
0
2,147
thread by: trihaitran | last post Jun 27 '09 by: trihaitran
I am reading chapter two of the Pylons book. In the text I am told to run: $ python virtualenv.py --no-site-packages env This is what I got back: $ python virtualenv.py --no-site-packages env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python
0
1,838
thread by: harshakusam | last post Jun 29 '09 by: harshakusam
Hi All, In my python script i use to run some oracle queries for this i require a library to connect to oracle which is cx_Oracle. When we were using 9i(oracle).. my script was running fine.. and now when we migrated to 10 G its giving problem... Few lines of my script import sys import cx_Oracle

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.