15,185 Topics

Member Avatar for
Member Avatar for mattlew62

I am new to programming and python in general I have written a couple of beginner programs now I am working on my first one and I have hit a bump I am using the IDLE interface and using 2.5. I have a repetitive task I do at work which …

Member Avatar for woooee
0
156
Member Avatar for sravan953

Hey, I just learnt the basics of smtplib module, and now know how to successfully send emails using Python. My next step is to learn how to use Python to 'use' the web, as in, download files from a specified URL, or something like that. What module is required for …

Member Avatar for Dan08
0
102
Member Avatar for leegeorg07

i have a program that converts text into morse code and then outputs it using a module i found in the snippets section but whenever i try to run it, it raises the error that "utext is not iterable" here is the code: [code=python] morse_code={ "a":beeps.a(), "b":beeps.b(), "c":beeps.c(), "d":beeps.d(), "e":beeps.e(), …

Member Avatar for leegeorg07
0
94
Member Avatar for leegeorg07

hi i was wondering if there are any open source projects looking to take on people in a sort of internship? I looked on sourceforge but i couldnt find anything thanks in advance

0
55
Member Avatar for BigTurtle

Dear wizards, here are two easy wxpython questions. Thanks in advance for your help! 1. How do I get wxpython to activate a button when user presses "Enter"? In the baby application below, pressing "Tab" switches the focus from one button to another, but I don't know how to make …

0
66
Member Avatar for kk2628

Hi, I can use webbrowser.open_new(url) to open an browser window easily, but how do I close this browser window ? I have searched the web and still not able to find a solution. Another way of doing this might be to start the browser window in a separate program (progA) …

Member Avatar for kk2628
0
6K
Member Avatar for kennm

Greetings. I'm relatively new to Python and need to write a simple (?) script that will capture all data from, say, port 42 and write it to a file. Can someone help me get started? Thanks. kennM

0
45
Member Avatar for stellalxin

Hello, everyone. My boss gave me a mission impossible. He asked me to retype all the content from a 126 pages PDF document. God! I don’t wanna spend the whole day doing this boring task. Any idea? I tried copy and paste, but I can’t copy from the PDF files. …

Member Avatar for stellalxin
0
976
Member Avatar for Stefano Mtangoo

Hi, I'm planning to work something with XML and Python. As part of familializing with it, I want to make simple playlist for a wxMedia player. the player is simply wx.MediaCtrl with some buttons and wxListCtrl as list container. My Question is, what process does it take to get playlis …

Member Avatar for Stefano Mtangoo
0
131
Member Avatar for thr

hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features please help me to select best programming language for this feature i am …

Member Avatar for John A
0
97
Member Avatar for Navanax

First of all, just want to say hello, new to the forums, and hope that I could receive some help. I spent some time learning reversing, (Up to tutorial #30 of lena151's) I know pretty much everything except advanced key-genning and crypto, even reversed a few programs that were being …

0
40
Member Avatar for thr

hello i want to select programming language that obtain this feature for me: 1: write best web application and speedy web application( like php application) 2: write desktop best and speedy application is fit python this features

Member Avatar for tomleo
0
244
Member Avatar for stvrich

Hello This is a completely foreign thing to me, so, forgive my "Noob-ness" I'm so embarassed. You programmers out there are prob gonna say, "how much easier can we MAKE it for you?" I just installed the python gui on vista. (I will re-install it on THIS xp machine also …

Member Avatar for stvrich
0
236
Member Avatar for darangho

Hi, all I want to write a program that doesn't require /path filename.py whenever i execute the program. I heard that one way to do is creating an alias for a command. I know this can be done by alias name=String in shell script, but how can i perform this …

0
58
Member Avatar for mahela007

Hi.. I'm just curious as to how one would set about writing some python code to monitor the network usage in one session... The program should simply record how much data has been downloaded from the time the computer is switched on to the time it was switched off. What …

Member Avatar for willygstyle
0
3K
Member Avatar for sab786

hi all, i still cant get myself out in my previous thread i wrote that i wanted to carry out a random sample function on an entire file.. now what i wish to do is read a file use a dictionary to search lines and then get this lines and …

Member Avatar for willygstyle
0
145
Member Avatar for mahela007
Member Avatar for pluring

Hi! I don't remember where but i found this download function (geturl) that works great if i just send one url to the function. But as you can see i want to execute geturl() for each line in url.txt witch contains url:s. It still downloads but instead of a progressbar …

Member Avatar for pluring
0
139
Member Avatar for eddy80310

I have a text file(computer.txt) with informations about (computer ID) (computer brands), (price) and (computer parts:number required). It looks like the following comp123, Sam sung, GC323:3,MC202:2,KB132:1 comp423, Acer, GC232:1,SP666:2,WC132:3 comp341, Asus, LP123:3,MM231:3,LA123:3 How can i read this text file and output as a dictionary.

Member Avatar for willygstyle
0
124
Member Avatar for jcmeyer

Is there any way to tell if a user clicks on the TitleBar of a frame? I tried to use wx.EVT_LEFT_UP(frame, self.OnLeftDown) but it does not seem to recognize a click on the TitleBar. Thank you for any suggestions.

0
61
Member Avatar for foosion

I've been having problems with email in 3.1.1. I decided to try the examples from the docs. Alas, the first I tried didn't work. I tried to send a directory whose only contents were a single zip file. [code]#!/usr/bin/env python """Send the contents of a directory as a MIME message.""" …

0
250
Member Avatar for rajivgupta1107

Hi, I am using this zipfile.Zipfile module to zip around 600 MB of data. But after zipping, the size of the zipped folder is app. same. file = zipfile.ZipFile(yesterday_date_time + ".zip","w") os.chdir(rawFileLocation) dirList = os.listdir(rawFileLocation) for fnames in dirList: file.write(fnames) file.close() If i try to use compression method as ZIP_DEFLATED, …

Member Avatar for bumsfeld
0
180
Member Avatar for mahela007

I was trying to find out what tk is (with respect to tkinter) and I regularly came across the words API and "binding". What do they mean?

Member Avatar for Stefano Mtangoo
0
115
Member Avatar for pluring

Hi! What i want to do is for my program to detect all USB disks inserted and return the device path (/dev/XXX) and system type. My first tought was to fetch output from fdisk -l but thats not very fancy and i guess there is some function or such to …

Member Avatar for pluring
0
141
Member Avatar for M A

Hello, I have an array 'summed_MWloss' which has the following content: [0.00024064097412677081, 0.0010840802387205584, 0.003607376872954593, 0.0078014804983401742, 0.013657631815844617] I am having trouble writing it into a CSV file into seperate rows. The code I am using at the moment is: [ICODE]t = open(r'F:\IPSA\My_Work\Python_Files\my_powerD2.csv', 'w') output = csv.writer(t, dialect='excel', delimiter=',') output.writerow(summed_MWloss)[/ICODE] which allows …

Member Avatar for M A
0
71
Member Avatar for mahela007

What is a parser and what does it do? For example, what would an HTML parser do in python?

Member Avatar for mahela007
0
334
Member Avatar for fellixombc

Here is my trouble: It loads the IRC information fine, but when its suppose to Identify itself (its a registered nick I'm making it use)but, It doesn't. So basically when after it connects, i want it to type that. Here is my code: [CODE]## An IRC bot by: Fellixombc import …

Member Avatar for kyleh
0
107
Member Avatar for fleem
0
50
Member Avatar for mk27

Hi. I've actually never used python but I'm an experience programmer in other languages. I wanted to do some "script-fu" for gimp, which uses scheme or python (it used to use perl, but AFAICT the bindings and modules are unmaintained and broken). I don't really like the look of scheme …

Member Avatar for mk27
0
175
Member Avatar for Lingson

hi, since I just learned Python, I start using Python 3.1 (i know people said the best version would be 2.5 or 2.6, but i think that at sometime in the future, it will become obselete since python 3.x is not backward compatible). but when i look in forums or …

Member Avatar for Lingson
0
256

The End.