15,406 Topics

Member Avatar for
Member Avatar for shakeel.ahmad

[TEX][/TEX]Hello All Gurus! I have developed a web service using DotNet Framework 3.5, having one webmethod that have a string parameter and returns parameter value after concatenating it with some string. When I tried to call it from the SOAP request, it only returns the concatenated string while parameter value …

Member Avatar for jlm699
0
189
Member Avatar for mickyemza

Hi All... I am testing a Web application (on Windows XP/MSIE) with PAMIE and the web application uses popups (not actual web popup, but rather an annnoying modal messagebox). As soon as the message box appears, the script freezes. It simply does not advance to the next command until I …

0
41
Member Avatar for leegeorg07

hi again, if you remember i had been asking how to extend my music player to do two things: 1)play music from folders and subfolders (complete) 2)change song at the end of each one (incomplete) well after looking around a while i found the answer : [code] # create a …

Member Avatar for leegeorg07
0
119
Member Avatar for harrykokil

hi everyone, i urgently need your help for my project. I need to implement collision detection in my program. I have been trying for a month but so far I haven't found any good solution. I'm providing my piece of code hoping you guys can help me out. Thanks [icode] …

0
58
Member Avatar for blair.mayston

Hi, Have written a script that downloads rss feeds, compares the latest download with the one before using md5, and if they're different sends an email with the updated headlines. However, have noticed the email update is sent even for a change as minor as the insertion of a comma. …

Member Avatar for Gribouillis
0
108
Member Avatar for preeti387

does anyone know how to underline the selected text from a textview . we are using pygtk and glade plz reply quickly. urgent urgent urgent!!!!!!!!!!!!!!!!!!!!!!

0
46
Member Avatar for hurricanezj

Hi, I've written two programs.One is for sending data from outside,another is for receiving the message.Both work well.But I also want to get the message value for next program.The problem is I have no idea how to get the value from the receiver. PLZ help me out!Many Thanks! This is …

Member Avatar for hurricanezj
0
98
Member Avatar for sparso

I am in need of a script that reads a log file, takes some data from the file and saves it in a .csv (coma separated value) format. The example log is below: log.txt: Date: 3/14/09 Device #: 1 Test: Cont: pass Test: Leakage: pass Test: INL: 0.88 Test: DNL: …

Member Avatar for Gribouillis
0
186
Member Avatar for artemis_f

Hello, Python newbie here. I have been using various templates to play around with wxPython and see what I can do and am stuck at the following bit - I have a MyPage panel. This panel has wxTextCtrl boxes and when the button the panel has is clicked I want …

Member Avatar for lllllIllIlllI
0
186
Member Avatar for Arrorn

I am writing a dice rolling simulation and i need help redefining a variable inside a loop.

Member Avatar for woooee
0
104
Member Avatar for ltj

Hi, I installed VTK for python from source (locally compiled) on Windows XP. However, I got some trouble with vtkTkRenderWidget. The error message is something like 'this application has requested the Runtime to terminate in an usual way'. Does anybody have some idea about this? Thanks in advance. tj

0
45
Member Avatar for dilipkk

Hi, I am looking for a tool in python which can build a model based on some set of training documents with manually assigned keywords. And then it uses that model to extract keywords from new documents. I want to know whether using NLTK can I do this? Reply me …

Member Avatar for woooee
0
239
Member Avatar for vegaseat

I recently bought the book "Beginning Python" Norton, Samuel, Aitel et al published by Wrox/Wiley in 2005. Has anybody else bought this book and actually found the source code at the website they list in the book? I don't want to sound vinegarish, but this has got to be the …

Member Avatar for vegaseat
0
217
Member Avatar for nitebreed52

I am looking to send an instant message through aim using python, or a way to send a txt message using python to a sprint cell phone

Member Avatar for leegeorg07
0
37
Member Avatar for neqinox

Anyone know a simple way in phython to read an XML document ant generate a schema? Ive been playing with minidom all day but I cant get it to do what I want :( Thanks in advance

Member Avatar for Gribouillis
0
25
Member Avatar for billySometimes

I've decided to mess around with Tkinter and import os a bit. I'm running ubuntu 8.10, if that helps any. Here is what my program was supposed to do: have two simple buttons, one labeled 'on' and one labeled 'off'. I wanted the on button to launch nautilus and the …

Member Avatar for Gribouillis
0
93
Member Avatar for snowfish

I am facing a problem when i tried to run the python code. The error is " Name error:global name 'receive' is not defined". May I know how can I solve the problem? I am using this code in my mobile phone to communicate with microcontroller to control ON/OFF ports …

Member Avatar for snowfish
0
388
Member Avatar for Prahaai

Good day. As the title sais, i am trying to extract pixel colors from images, in Python 3. I know that for python 2.x, PIL (Python image library) can do that, via Image > getpixel((x,y)). It returns the colors as a list with 3 parameters, Red, Green and Blue. This …

Member Avatar for vegaseat
0
344
Member Avatar for chris99

I installed successfully, it is in python26/Lib/site_packages but it won't import. Here's the error message: [CODE]>>> import pygame Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import pygame File "C:\Python26\lib\site-packages\pygame\__init__.py", line 93, in <module> from pygame.base import * ImportError: DLL load failed: The specified module could not …

Member Avatar for jlm699
0
727
Member Avatar for BigPappyJappy

I was wondering if someone could help me with modifying a program. I first must write a program that not only encrypts, but decrypts a message as well. This part I think I have figured out (although it is probabaly a little bloated) here it is: [code] #Cypher.py #A program …

Member Avatar for BigPappyJappy
0
114
Member Avatar for tillaart36

Hey there! I've written a program and outside of that program I want to make a new python program which generates lists (or in some cases maybe dictionaries) from certain directories and the files in them. I've puzzled around with the os.path(), os.chdir(), os.getcwd() functions, the glob.glob() function and I've …

Member Avatar for Murtan
0
89
Member Avatar for super zach

Hi, [code] A= [1,3,5] B=[12,24,36,48,60,72] [/code] Here list A is a list of the elements in list B i want to remove. How can I do this so that I would get list B to then look like: [code] B=[12,36,60] [/code] Thanks in advance, Zach

Member Avatar for Max721
0
323
Member Avatar for mahela007

The readlines() method for file objects return the lines as a list (or is it a tuple?) however each element contains the \n character which prevents the element from being used in another function. How do I remove the \n character from the elements? I have made some code which …

Member Avatar for Gribouillis
0
118
Member Avatar for Rooking

This is my code: The thing is it brings up the check boxes. But every time, no matter which ones I check, it says decommission tanks, and decommission cm's. That's all it says, no matter which combination of them I push? what's wrong with it? [CODE=Python]from wxPython.wx import * class …

Member Avatar for lllllIllIlllI
0
73
Member Avatar for patelmitul

Hi guys I am new to python .. i was trying to move sequential images from a folder with multiple types of sequences in same folder like a_bc_01.jpg a_bc_02.jpg a_bc_03.jpg c_de_05.jpg c_de_06.jpg etc... to different folders [ICODE] import os, glob, os.path import array path = 'd:\del' for file in glob.glob( …

Member Avatar for Gribouillis
0
380
Member Avatar for Rooking

I'm not sure if this is even possible (please help me if it is). But I need to make a python code that will grab a certain portion from a website, and save it temporary. Let me explain. This program audits nations (this is a game) and displays a code …

Member Avatar for Gribouillis
0
100
Member Avatar for kiddo39

Hi I'm trying to use PIL to get data from an image and find 'unusual' RBG values but haven't found the right way. [code] Import Image, PIL im=Image.open("image.bmp") ans=im.getdata() print ans [/code] This doesn't examine the RGB values for me to find any unusual ones. If tried others like: im.load() …

Member Avatar for kiddo39
0
303
Member Avatar for Rooking

I want all of those objects to be check boxes (trade, bonus, soldiers, etc) [CODE] self.box = wxCheckListBox ( self.panel, 100, size = ( 250, 200 ), choices = self.trade, style = wxLB_HSCROLL )[/CODE] In this line where I define the choices, I can only put one (self.trade) if I …

Member Avatar for lllllIllIlllI
0
98
Member Avatar for breatheasier

Hi, I have been writing a program that simulates the behaviour of a system of hard disks using the monte carlo method. I ran the program upto around 2 million steps and it's really slow(takes around 3 1/2 to 4 hours). I first wrote it in vpython as I'm a …

Member Avatar for breatheasier
0
264
Member Avatar for Rooking

My error is ">>> Traceback (most recent call last): File "C:\Python25\Books_per_month1AP.py", line 203, in <module> Window() File "C:\Python25\Books_per_month1AP.py", line 7, in __init__ wxFrame.__init__ ( self, None, -1, 'Audit', size = ( 300, 300 ) ) File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_windows.py", line 505, in __init__ _windows_.Frame_swiginit(self,_windows_.new_Frame(*args, **kwargs)) PyNoAppError: The wx.App object must be created …

Member Avatar for slate
0
203
Member Avatar for mahela007

HI. What are the modules I would need if I wanted to do some basic operations regarding sending files to other computers on my own network? Just being able to copy files to another computer is sufficient. Does such an operation require a lot of expertise in programming and networking …

Member Avatar for slate
0
182
Member Avatar for EAnder

I was a little bored today and I started to google how the Python Virtual Machine works. I found a bunch of helpfull articles and kind of understand at least some of the very basic PVM code using the modules py_compile and dis. I was wondering how to write the …

Member Avatar for EAnder
0
194
Member Avatar for mahela007

Why do I get different values for the f.readline() statement in this bit of code? I entered it in the interactive mode of IDLE [CODE]>>> f=open('F:\\Documents and Settings\\folder1\\flder2\\t.txt','r') >>> f.readlines() ['1\n', '2\n', '3\n', '4\n', '5\n', '6\n', '7\n', '8\n', '9\n', '10'] >>> f.readlines() [][/CODE]

Member Avatar for mahela007
0
104
Member Avatar for MaxManus

I want to store two variables in an array or list in a loop to collect all my x an y, something like the append function in python, can anyone help me.

Member Avatar for MaxManus
0
174
Member Avatar for HatGuy

I'm using Python 2.5.2 on a Ubuntu box for a research project based on data from the Fatality Analysis Reporting System (FARS) database (1975-), available at [url]http://www-fars.nhtsa.dot.gov/Main/index.aspx[/url]. I found 115 characters of the form "\xzz" -- possibly hex? -- in 4+ card-image records on about 300k incidents from 1975-1981 so …

Member Avatar for HatGuy
0
145
Member Avatar for Gadgeteer99

Hey, I just started learning Python yesterday and I got to the end of a chapter on Branching and While Loops...which lead me to a "challenge"...basically it gives me the description of a program and I have to write it. This program flips a coin 100 times and then gives …

Member Avatar for orinbai
0
206
Member Avatar for crumpet

Hi folks, Just hoping someone can show me where I'm going wrong here. I've been given a tutorial question to count the number of times a particular character (char) appears in a string. The only catch is that you need to use a for loop, as the online checker won't …

Member Avatar for sneekula
0
220
Member Avatar for breatheasier

Hi. I've read the documentation but I can't quite work out how i create an object and give it attributes. I'm trying to create a disk object that has attributes disk.x and disk.y which i can then identify with a line, [code=python] disk.id = (x,y) [/code]

Member Avatar for breatheasier
0
93
Member Avatar for blair.mayston

Hi, Making good progress with a script that collects rss feeds from a news website and emails headlines but wondering whether I can alter what I have to email only the new headlines. My idea is that the new headlines would be compared with the previous ones using something like …

Member Avatar for blair.mayston
0
97
Member Avatar for digiPixel

How do I create a Python egg that will properly pick up all the files and directories in a Python package :?: I have tried to do this with a "setup.py" file (created outside the Python package). Listed below are its contents: [CODE] from setuptools import setup, find_packages setup(name = …

Member Avatar for digiPixel
0
490
Member Avatar for akshay.sulakhe

hello friends...started to learn python and have covered the basic stuff and some silly gui stuff...i currently have some time so i thought why not prepare a app in python with some killer gui..now java has swing which can be modified to make such GUI...so is there anything which can …

Member Avatar for scru
0
130
Member Avatar for blair.mayston

Hi, Have adapted some code I found on the net to get a rss feed from a news site. I would like to email the output of this script using smtplib - after a couple of frustrating hours I have got that working as a separate element with my gmail …

Member Avatar for blair.mayston
0
111
Member Avatar for pythononmac

name = caffé print name Python gave me an error on print: ascii' codec can't encode character u'\xe9' in position 5: ordinal not in range(128)

Member Avatar for pythononmac
0
684
Member Avatar for besktrap

Hi everyone! I am currently creating somewhat of a platformer/puzzle game in pygame and ran into a problem with creating levels. I really don't want to take the time to program collisions with the player and each platform on the game, because that would obviously take forever. I was thinking …

Member Avatar for besktrap
0
145
Member Avatar for acejones109

I have been using python since the last few months. I am trying to telnet into one router and then telnet into another router from the first router. I know how to use telnetlib to telnet into a router but I have no clue on how I should proceed if …

Member Avatar for leegeorg07
0
114
Member Avatar for WhizKidd

Hi, Im doing this memory game where im supposed to randomize 18 words from a file, duplicate them and shuffle and then place in a matrix 6 x 6. Ive gotten quite far, but im not sure what the best way is to place the words in the matrix, and …

Member Avatar for WhizKidd
0
1K
Member Avatar for jascase901

Hello i Just learned about the Exec statement, so i trying to make a flash card program that saves your cards. The way that i wanna keep the cards persistent is to save a dictionary to a text file and then just use the exec statement to call forth the …

Member Avatar for jascase901
0
1K
Member Avatar for MK12

I've nearly finished my python project, and plan to maybe distribute it. But I don't want users to have to go to command prompt and type python foo.py. I don't mind having the user install python, but is there a way I can make an exe that just runs the …

Member Avatar for MK12
0
106
Member Avatar for marcux

Hi all! I wonder, is a "standard" way to make help contents in pygtk? I was thinking about making a simple html page for my help on my application put as I understand there is no widget that natuarly shows html, so there is where my question comes up. Is …

0
37
Member Avatar for leothe3

I've been trying to solve this problem for a few hours now. I'm new to Python but I have programming experience in other languages. Description of my problem: 1) I'm writing a script that will run as a cron job to verify if data transfer is occurring on some legacy …

Member Avatar for leothe3
0
1K

The End.